Most likely, %timings does not contain what you think it does.
Maybe inspect it before every iteration:
use Data::Dumper; ... for (;;) { warn "Next iteration:"; warn Dumper \%timings; foreach my $item (sort (keys %timings)) { warn "Processing [$item]"; do_stuff(); # changes data, not keys, no deletes } }
In reply to Re: looping through hash of hashes
by Corion
in thread looping through hash of hashes
by tangent.gardner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |