and that is not the block eval command that you asked for.my $cmd = '1/0'; eval $cmd; if ($@) { print "$cmd gives: $@\n" } 1/0 gives: Illegal division by zero at (eval 1) line 2.
In reply to Re: Any way to access the contents of a block eval?
by cdarke
in thread Any way to access the contents of a block eval?
by adrianh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |