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»
In reply to Re: Peek a hash without breaking iterator
by Anonymous Monk
in thread Peek a hash without breaking iterator
by hurricup
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |