[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Add to elements of a list



Rick Delaney writes:
>     ${\($x, $y, $z)[$i++]} += $_ for foo;

I thought of that but avoided it because it recalculates the
reference list each time.  I did the sub with both lists as
arguments specifically to avoid the recalculation.

Nat

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe