When the hash is entirely read, a null array is returned in list context (which when assigned produces a false (0) value), ...
This leads me to believe that one of these could cause the problem:
To "reset" the while (I would never do that in production code, before finding what causes the problem), simply do an throw-away keys() or (values) fetch prior to the "each".
Earth first! (We'll rob the other planets later)
In reply to Re: trouble with each and a hash of hashes
by NetWallah
in thread trouble with each and a hash of hashes
by marcokuma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |