in reply to Re: performing a function on corresonding array elements
in thread performing a function on corresonding array elements
It makes operations on deeply nested structures a bit more readable.use List::Util qw(sum); ... for my $href ( @set ) { $totals[ $_ ] += sum @{ $href->{items} } } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: performing a function on corresonding array elements
by BrowserUk (Patriarch) on Apr 03, 2006 at 12:39 UTC |