in reply to Are There Error Handlers in Perl?
However this document at perl.apache.org, despite being written for mod_perl, gives good instructions for the procedure of dieing with objects. This allows you to do this sort of thing:
die My::Exception->SomeException( foo => "bar" );
And then deal with the data SomeException and (foo => 'bar') in the exception class My::Exception.
Or you can overload the die function, allowing other trickery.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re2: Are There Error Handlers in Perl?
by tye (Sage) on Jan 20, 2001 at 10:02 UTC | |
by tilly (Archbishop) on Jan 20, 2001 at 14:26 UTC |