I noticed that DBI now has some shortcut methods, e.g. selectrow_hashref
which combines a prepare, execute and fetchrow in one function call.

Is there a similar method to combine a prepare and execute?

$sth = $dbh->prepare("SELECT ...");
$sth->execute;

e.g. something like:

$sth = $dbh->prepare_execute("SELECT ...");

at which point I could do $sth->rows, $sth->fetchrow_hashref, etc.

-Philip Mak ([EMAIL PROTECTED])

Reply via email to