Just another Perl shrine | |
PerlMonks |
Re: sql-o-maticby jwkrahn (Abbot) |
on Sep 16, 2008 at 06:15 UTC ( [id://711613]=note: print w/replies, xml ) | Need Help?? |
The || operator has higher precedence than the = operator so you should either enclose the assignment in parentheses or use the lower precedence or operator. According to the DBI manual: If the connect fails (see below), it returns "undef" and sets both $DBI::err and $DBI::errstr. (It does not explicitly set $!.) You should generally test the return status of "connect" and "print $DBI::errstr" if it has failed. So that line should be:
If the first ^-h$ pattern doesn't match what makes you think that the second one will?
Shouldn't that be:
In Section
Code Catacombs
|
|