in reply to Are There Error Handlers in Perl?
eval { foo(); }; print "caught '$@'\n" if $@; sub foo { # "throw" an error die "oops!"; } [download]