(you could use temporary copies of @foo and @bar to avoid losing them in the calculation)push @foobar, shift(@foo) + shift(@bar) while @foo || @bar;
-Blake
In reply to Re: Summing the elements of multiple arrays into a new array
by blakem
in thread Summing the elements of multiple arrays into a new array
by djw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |