Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thank you in advance, help is appreciated.use Error qw(:try); try { `$create_script $input`; #code that might thrown an exception; return; } catch Error with { my $error_handler = shift; # Get hold of the exception object } exit;
2005-02-16 Janitored by Arunbear - added code tags, as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: error handling
by TedYoung (Deacon) on Feb 16, 2005 at 15:43 UTC | |
|
Re: error handling
by RazorbladeBidet (Friar) on Feb 16, 2005 at 15:39 UTC | |
|
Re: error handling
by Anonymous Monk on Feb 16, 2005 at 18:02 UTC |