Closed p5pRT closed 20 years ago
with code like:
while (my ($k\,$v) = each %ENV) { local %ENV; $r = keys %ENV; print "$k=$v\n" }
the keys in the loop resets the iterator for the original %ENV hash\, resulting in the each always returning the first key\,value pair.
This is more than likely a misunderstanding between the use of local() and my().
Migrated from rt.perl.org#1673 (status was 'resolved')
Searchable as RT1673$