"Beginner" schreef:
> my ($rows) = $dbh->selectrow_array("SELECT foo FROM bar where
> path=?",undef,q($name)) or die ....snip
Your q($name) creates the literal string $name.
my ($rows) =
$dbh->selectrow_array(
"SELECT foo FROM bar where path=?",
undef,
$name,
);
No need for die() if you set up the $dbh with 'RaiseError' on,
see perldoc DBI. Also look for 'trace'.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/