Even better, don't depend on $@.
eval { # Do stuff 1; } or do { # Handle errors };
I commonly write this to bring in $@ without being obfuscatory.
eval { ... ; 1} or die "Barfoo ... $@";
In reply to Re: Style Point: Catching eval { } errors
by diotalevi
in thread Style Point: Catching eval { } errors
by hardburn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |