Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 10:49 UTC ( [id://567416]=note: print w/replies, xml ) Need Help??


in reply to Re: 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?

... and List::Util::sum() doesn't use a foreach loop?

--
b10m

All code is usually tested, but rarely trusted.
  • Comment on Re: Answer: How can I add all the numbers in an array with out doing a foreach loop?

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 gellyfish (Monsignor) on Aug 15, 2006 at 10:58 UTC

    Er, no it is XS code, it does interate over the list it gets as an argument using for(index = 1 ; index < items ; index++) but I don't think that counts as a foreach

    /J\

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-06-18 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.