more useful options | |
PerlMonks |
Re: How can I add all the numbers in an array with out doing a foreach loop?by rajib (Novice) |
on Aug 20, 2002 at 17:41 UTC ( [id://191530]=note: print w/replies, xml ) | Need Help?? |
Another recursive method:
This method's shortcoming is that the sub acts only on the global array "@array", and thus can't be easily applied to more than one array. A more elegant and useable recursive method was demonstrated earlier in this thread.
Originally posted as a Categorized Answer.
In Section
Seekers of Perl Wisdom
|
|