try to eval
eval { do_things(); do_something_that_might_die(); do_more_things(); }; if ($@) { print "something that might die has, indeed, died.\n"; print "message: ", $@, "\n"; }
Or something along these lines.
In reply to Re: Stopping Module Croaking
by Chady
in thread Stopping Module Croaking
by allyc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |