in reply to Variable Unusable?

As a matter of style it is good practice to always use a locally declared (lexical) loop variable in for loops. It makes the scope of the variable clear and avoids issues with knowing what may be mucking with $_ within the scope of the loop.


True laziness is hard work