I'm not sure if you got the point, that accessing an outer lexical variable inside a string is not possible.
The Benchmark module is eventually running the code's text thru eval , but inside it's own scope.
The my ($e, $vt, $vf) = (0) x 3; are not accessible from there.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^4: "exists $hash{key}" is slower than "$hash{key}"
by LanX
in thread "exists $hash{key}" is slower than "$hash{key}"
by swl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |