note
jeffa
<p>
<i>"Add a || die $DBI::errstr to all ... "</i>
</p>
Too much typing, especially after the code has already
been typed. Just add {RaiseError => 1} to connect():
<code>
my $dbh = DBI->connect(
"dbi:mysql:mydb", "user", "pass",
{RaiseError => 1},
);
</code>
<p>
<i>"Dont use a & in a sub call without needing it. It overrides any prototype you may add ..."</i>
</p>
Perl prototypes really [http://www.perl.com/pub/a/language/misc/fmproto.html|are not very good], IMHO. I prefer to avoid them, opting for
good documentation instead. Check out [id://29139] for
some good info.
<p>jeffa</p>
<font size=1>
<pre>
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(<a href="http://jeffa.perlmonk.org/tripdid.mp3">the triplet paradiddle with high-hat</a>)
</pre></font>
187448
187489