Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by b10m (Vicar)
on Aug 15, 2006 at 12:06 UTC ( [id://567438]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Answer: How can I add all the numbers in an array with out doing a foreach loop?
in thread How can I add all the numbers in an array with out doing a foreach loop?

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: Answer: How can I add all the numbers in an array with out doing a foreach loop?
by ysth (Canon) on Aug 16, 2006 at 00:07 UTC
    Yes, the answer then is, "you can also use a for loop".
    No, the Scalar::Util author is doing a (C, not Perl) for loop. The "I" of the "How can I..." question is only doing sum().
    However, when the XS fails to load, a plain foreach is used again.
    Ditto.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-03-28 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found