http://www.perlmonks.org?node_id=633165


in reply to Re: Refactoring Perl #6 - Split Temporary Variable
in thread Refactoring Perl #6 - Split Temporary Variable

Yeah, now that I think of it, in PBP , TheDamian suggests:

Always declare a for loop iterator variable with my. (p. 108)

for just that reason. As such, I think re-use of temporary variables in Perl should be limited only to accumulators.

perl -e 'split//,q{john hurl, pest caretaker}and(map{print @_[$_]}(joi +n(q{},map{sprintf(qq{%010u},$_)}(2**2*307*4993,5*101*641*5261,7*59*79 +*36997,13*17*71*45131,3**2*67*89*167*181))=~/\d{2}/g));'