in reply to Resolving scalars in a scalar

eval can evaluate either a block of code or a character string containing code. It returns the return value of that code (last computed value in the block/string).
$x = 1; $y = 2; $code = "$x + $y"; print $code; print eval $code;
First print yields "1 + 2", second print yields "3".

Also, yes, eval sets the global variable $@ to be the value of any exception that was thrown inside of the eval.


------------
:Wq
Not an editor command: Wq