Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How can I add all the numbers in an array with out doing a foreach loop?

by I0 (Priest)
on Jan 03, 2001 at 15:49 UTC ( [id://49485]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    unpack "%123d*" , pack( "d*", @numbers);
    
  2. or download this
    unpack "l", pack( "l", unpack( "%32d*", pack( "d*", @numbers)));
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found