in reply to Re: Re: How to detect a die() without catching it?
in thread How to detect a die() without catching it?
/ssub blah { die "blah"; } eval {blah();}; if ($@) { die "$@\n"; } else { print "okay\n"; } # prints "blah at foo.pl line 4"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: How to detect a die() without catching it?
by samtregar (Abbot) on May 18, 2002 at 01:02 UTC |