$dbh->errstr is a function call. You can't put it in a quoted string.
Update: arturo asks me to point out that you can interpolate function calls in quoted strings by doing something nasty and kludgy like:
"@{ [ $dbh->errstr ] }" --
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Re: (jeffa) Re: Script does not die when DB connection fails
by davorg
in thread Script does not die when DB connection fails
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |