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 ( #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? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2022-05-29 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?