in reply to limiting scope of 'eval'??
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: limiting scope of 'eval'??
by Crackers2 (Parson) on Aug 22, 2004 at 13:58 UTC |