And I think this, while breaking the mental encapsulation of the single line versions, might be easier for some hackers to grok. No personal preference here; just tossing one more on the pile.
while ( @{$rowcache} ) { my $result = shift @{$rowcache}; ....
In reply to Re^2: Different result for 'foreach' vs 'while shift' arrayref
by Your Mother
in thread Different result for 'foreach' vs 'while shift' arrayref
by gvandeweyer
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |