Perl: the Markov chain saw | |
PerlMonks |
Re: lost in my first Perl moduleby ikegami (Patriarch) |
on Jun 22, 2010 at 19:53 UTC ( [id://845957]=note: print w/replies, xml ) | Need Help?? |
Looking at your wish list, you're not abstracting anything away at all. You're just adding a needless layer.
DBI->connect
Bad idea. Data storage and user interaction are unrelated tasks.
$dbh->prepare
$sth->execute
If $dbh->prepare + $sth->execute is really a hardship,
RaiseError => 1
$dbh->selectall_*
$sth->finish, though rarely needed.
In Section
Seekers of Perl Wisdom
|
|