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 ] }" --
<http://www.dave.org.uk>

"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
    How do I get a meaningful error message returned from this function ? By the way thanks for all the help so far.
Re: Re: Re: (jeffa) Re: Script does not die when DB connection fails
by chaskins (Sexton) on May 25, 2001 at 19:03 UTC
    Thanks for that. All is working now.