sh1tn-
Thanks for the code-- It seems to work perfectly, except for the fact that the resulting mean value seems to be (sum * count) instead of (sum / count). I tried fiddling with the code to get it to output the ratio instead of the product, but to no avail.
For example, a file with the following comma delimited values:
1 1 1
outputs:
9
(1+1+1 * 3)
Any ideas?
Thanks,
Brian
In reply to Re^2: Read in values and average -- Perl for MacOS X
by briglass
in thread Read in values and average -- Perl for MacOS X
by briglass
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |