in reply to Stopping Module Croaking
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.
He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.
Chady | http://chady.net/
Are you a Linux user in Lebanon? join the Lebanese GNU/Linux User Group.
|
---|
In Section
Seekers of Perl Wisdom