in reply to Re: performing a function on corresonding array elements
in thread performing a function on corresonding array elements

And, of course, it also works without the temporary array variable:

... my @totals= MapCarU { sum( @_ ) } map $_->{items}, @sets;

- tye        

  • Comment on Re^2: performing a function on corresonding array elements (w/o temp)
  • Download Code

Replies are listed 'Best First'.
Re^3: performing a function on corresonding array elements (w/o temp)
by diotalevi (Canon) on Apr 03, 2006 at 18:26 UTC

    Which is exactly how I'd write it for myself. I thought I'd opt to be clearer.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊