my $success = eval { call_that_might_go_wrong(); 1; }; unless ($success) { print "Something went wrong: $@"; }
In reply to Re: How to prevent Exception::Class to exit the process
by moritz
in thread How to prevent Exception::Class to exit the process
by abubacker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |