in reply to Re: (jeffa) Re: Script does not die when DB connection fails
in thread Script does not die when DB connection fails
$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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: (jeffa) Re: Script does not die when DB connection fails
by chaskins (Sexton) on May 25, 2001 at 18:52 UTC | |
by davorg (Chancellor) on May 25, 2001 at 18:57 UTC | |
|
Re: Re: Re: (jeffa) Re: Script does not die when DB connection fails
by chaskins (Sexton) on May 25, 2001 at 19:03 UTC |