With split, chomp job here would have been taken care off.
More so, it would be wonderful, if the OP tell what the content of his file 'faketext.txt' is. Is he counting the numbers of lines in the file? Is he getting different value from each line? Maybe a peek into the file would have helped.
If the OP file is CSV file, then Text::CSV_XS would be alot better than splitting on commas.
In reply to Re^4: Mean, Median and Mode
by 2teez
in thread Mean, Median and Mode
by Noob@Perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |