in reply to Re: seeking eval enlightenment
in thread seeking eval enlightenment

Thank you!
I changed it to:
eval $code;

Replies are listed 'Best First'.
Re: Re: Re: seeking eval enlightenment
by tilly (Archbishop) on May 03, 2004 at 23:53 UTC
    Don't forget to check $@ afterwards. As pointed out in eval, in addition to evaluating code, eval traps errors and puts them into $@. So minor typos etc will get trapped, and can cause puzzling failures.
      i left out that line of code -
      it follows with:
      die "$@ $code" if $@;
      thanks for the reminder though.