You could also use the contents of $@. After the eval, the die message will be stored in $@.DBI->connect() or print LOG "Error message\n";
Is that what you need?
Russ
Brainbench 'Most Valuable Professional' for Perl
In reply to Re: Logging the results of 'die'
by Russ
in thread Logging the results of 'die'
by harmony
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |