This is the stuff of which objects are made. Seriously. You'll want to secret your hash data away somewhere so another programmer isn't going to stomp all over your iterator by accident. The alternative views would require you to properly scope your global hash (so its not global anymore) or commit to iterating over the keys() result.
Either that or just be very, very careful. (and use scalar values() over keys() to reset because its supposed to be faster (since I can't be bothered to benchmark that for you)).
Seeking Green geeks in Minnesota
In reply to Re: hash iteration with each
by diotalevi
in thread hash iteration with each
by edan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |