Something like:
$a = "VAR_A"; $b = qq[ package Nowhere; local ( $/, $_, $@, $0, $a, $b ); ## etc. print "VAR_B (\$a)\n"; ]; eval $b;
I'm not quite sure what you expect from \$a though, except an error?
In reply to Re: limiting scope of 'eval'??
by BrowserUk
in thread limiting scope of 'eval'??
by ManFromNeptune
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |