Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Sum Fields in Array

by linuxer (Curate)
on Feb 02, 2010 at 21:50 UTC ( #821044=note: print w/replies, xml ) Need Help??


in reply to Sum Fields in Array

I admit, I have to reactivate my SQL knowledge .... Maybe List::Util can help you:
use List::Util qw( sum ); my $sum_debit = sum map { $_->{fooddebits} } @fields;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://821044]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2016-08-31 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (426 votes). Check out past polls.