in reply to Re: Different result for 'foreach' vs 'while shift' arrayref
in thread Different result for 'foreach' vs 'while shift' arrayref
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}; ....
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Different result for 'foreach' vs 'while shift' arrayref
by tobyink (Canon) on Apr 19, 2014 at 09:29 UTC |