Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

(tye)Re: Using += in array context

by tye (Sage)
on Jun 05, 2001 at 18:32 UTC ( [id://85827]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $totals{$_} += $delta{$_} foreach( @fields );
  2. or download this
        use mapcar;
        mapcar { $_[0] += $_[1] } [@totals{@fields}], [@delta{@fields}];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-18 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found