go ahead... be a heretic | |
PerlMonks |
Re: Best Practices for Exception Handlingby Anonymous Monk |
on Jan 29, 2003 at 00:17 UTC ( [id://230811]=note: print w/replies, xml ) | Need Help?? |
I've always used perl's EVAL command:
my $val; eval { my $val = $self->do_command(); }; warn " do_command failed with the following error \n\n@_" if ("@_" ne ""); - adam
In Section
Seekers of Perl Wisdom
|
|