in reply to Re^3: "eval" and "my" variable weirdness
in thread "eval" and "my" variable weirdness
{ use warnings; my $thingy = 'thangy'; sub doit { 0 && $thingy; # Close over $thingy eval 'print "thingy is $thingy\n"'; } } doit(); # "thingy is thangy"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: "eval" and "my" variable weirdness
by diotalevi (Canon) on Jun 29, 2006 at 17:24 UTC | |
by ikegami (Patriarch) on Jun 29, 2006 at 17:32 UTC |