Perl: the Markov chain saw | |
PerlMonks |
RE: Answer: How can I add all the numbers in an array with out doing a foreach loop?by Adam (Vicar) |
on Jun 09, 2000 at 23:43 UTC ( [id://17414]=note: print w/replies, xml ) | Need Help?? |
Your first answer is really a foreach loop. Remember that for and foreach are synonyms. Your second answer, however, is very slick! Nice.
In Section
Seekers of Perl Wisdom
|
|