in reply to Re^8: declaring lexical variables in shortest scope: performance?
in thread declaring lexical variables in shortest scope: performance?

> Seems you are right!

Honestly, I don't know if these benchmarks proof much.

Just to give you an idea how complicated things can become, see

Re^2: unexpected modify hash in a distance with grep { $_ } (inconsistent behaviour of aliasing) ff.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^9: declaring lexical variables in shortest scope: performance?