![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: Changing the return number for "die"by dpuu (Chaplain) |
on Jul 20, 2004 at 23:21 UTC ( #376115=note: print w/replies, xml ) | Need Help?? |
If you want to do it one-off, then you can simply set $! before you call die. If you want to set it more globally, then you might try:
If you ever catch errors using eval, then you might want to be a bit more careful:
--Dave Opinions my own; statements of fact may be in error.
In Section
Seekers of Perl Wisdom
|
|