Skip to content

Instantly share code, notes, and snippets.

@plainblack plainblack/12
Created Apr 12, 2010

Embed
What would you like to do?
WTF Of The Day: 2010/04/12 -- Reimplementing join()
my $sql = "select email FROM users;";
@emails = $dbh->buildArray($sql);
my $count = 0;
foreach $email (@emails)
{
$count++;
if ($count == 1){
$g = $email;
}else{
$g .= ",".$email;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.