in reply to Style Point: Catching eval { } errors
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 ... $@";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Style Point: Catching eval { } errors
by DapperDan (Pilgrim) on Nov 25, 2003 at 19:24 UTC | |
by diotalevi (Canon) on Nov 25, 2003 at 20:09 UTC |