eval { foo(); }; print "caught '$@'\n" if $@; sub foo { # "throw" an error die "oops!"; }
In reply to Re: Are There Error Handlers in Perl?
by dws
in thread Are There Error Handlers in Perl?
by sierrathedog04
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |