in reply to Peek a hash without breaking iterator
I guess. What happens if you avoid each?
foreach my $key ( keys %hash ) { print qq($key => $hash{$key}\n); my %other_hash = %hash; }
If i run this, i don't get an infinite loop...
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Peek a hash without breaking iterator
by Anonymous Monk on Jun 20, 2016 at 21:16 UTC | |
by karlgoethebier (Abbot) on Jun 21, 2016 at 18:04 UTC | |
by Anonymous Monk on Jun 21, 2016 at 23:03 UTC | |
by Anonymous Monk on Jun 21, 2016 at 18:47 UTC |