Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Logging the results of 'die'

by Russ (Deacon)
on Jun 08, 2001 at 23:59 UTC ( [id://87041]=note: print w/replies, xml ) Need Help??


in reply to Logging the results of 'die'

DBI->connect() or print LOG "Error message\n";
You could also use the contents of $@. After the eval, the die message will be stored in $@.

Is that what you need?

Russ
Brainbench 'Most Valuable Professional' for Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://87041]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-24 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found