|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Why is the List upload with STDIN from a text file giving wrong result for mean?by choroba (Prior) |
| on Nov 02, 2012 at 11:26 UTC ( #1001949=note: print w/ replies, xml ) | Need Help?? |
|
split('', $list) will split the list to characters. You want to split the list on commas: Also, if the parentheses are part of the input, you need to get rid of them. You can achieve that by after you read the input.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||