Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
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 ( [id://567570]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|