Instead, you want to test $@, which is set if and only if there is an error:
eval $code_to_eval; warn $@ if $@;
In reply to Re: Eval errors though code is successful
by bikeNomad
in thread Eval errors though code is successful
by AidanLee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |