Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2023-12-11 01:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?