in reply to How to detect a die() without catching it?
eval { &$code; }; # call the wrapped sub if ($@) { # do something about that die $@; } else { # do something else }
--
John.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to detect a die() without catching it?
by samtregar (Abbot) on May 17, 2002 at 23:06 UTC | |
by educated_foo (Vicar) on May 18, 2002 at 00:04 UTC | |
by samtregar (Abbot) on May 18, 2002 at 01:02 UTC |