good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Calculating/adding byte counts of array elementsby choroba (Cardinal) |
on Aug 06, 2013 at 21:43 UTC ( [id://1048195]=note: print w/replies, xml ) | Need Help?? |
You are changing the array and using the changed value to count the number. Do not store the output in the array you are using to count the length:
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|