There's more than one way to do things | |
PerlMonks |
Re: Answer: How can I add all the numbers in an array with out doing a foreach loop?by choroba (Cardinal) |
on Jul 09, 2013 at 09:27 UTC ( [id://1043278]=note: print w/replies, xml ) | Need Help?? |
The problem is it does not work under strict and it is probably not doing what you think (it uses a global $sum and lexical $sum at the same time which is confusing).
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|