It is noted in the POD for keys:
As a side effect, calling keys() resets the HASH's internal iterator, see each. (In particular, calling keys() in void context resets the iterator with no other overhead.)
In reply to Re^3: Optimization, side-effects and wrong code
by BrowserUk
in thread Optimization, side-effects and wrong code
by cbraga
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |