Elizabeth Mattijsen wrote: > Just wondering, is keys() optimized for void context? Perlfunc only states: > > As a side effect, calling keys() resets the HASHâ¤_s internal iterator...
Yes, it is. > If keys() _is_ optimized for void context, a change in the > perlfunc.pod seems to be in order. Thanks, applied as #21644 :) --8<-- As a side effect, calling keys() resets the HASH's internal iterator, -see L</each>. +see L</each>. (In particular, calling keys() in void context resets +the iterator with no other overhead.) -->8--