Skip to content

Instantly share code, notes, and snippets.

@rbuels
Created August 24, 2009 15:53
Show Gist options
  • Save rbuels/173934 to your computer and use it in GitHub Desktop.
Save rbuels/173934 to your computer and use it in GitHub Desktop.
###### instead of
my $statement = "SELECT name FROM public.wiki WHERE name='$name'";
#print "$statement\n";
next if my $arr_ref = $dbh->selectrow_arrayref($statement);
####### can do
next if $dbh->selectrow_arrayref(<<EOQ,undef,$name);
SELECT name
FROM public.wiki
WHERE name = ?
EOQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment