my $code = '$a = 2;'; # $a is meaningless here; it's just a string sub hi { my $a = 1; eval $code; print "$a\n"; # 2 }
In reply to RE: RE: RE: eval output
by Fastolfe
in thread eval output
by thealienz1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |