in reply to Eval errors though code is successful
Instead, you want to test $@, which is set if and only if there is an error:
eval $code_to_eval; warn $@ if $@;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Eval errors though code is successful
by AidanLee (Chaplain) on Jul 09, 2001 at 16:08 UTC |