in reply to Eval errors though code is successful

eval returns the value of what you evaluated. In this case, it returned something that was false. This does not mean that it failed. And return @_ is not appropriate.

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
    /me feels like slapping my forehead. thanks, bikeNomad. too much coding.... :)