I think part of it is that chomp is the wrong command
That's not it. You use the whole array to build the file name instead of just one element of it.
open my $fh, "<", "$wrestlerdir/@lines.total"
should be
open my $fh, "<", "$wrestlerdir/$test.total"
Unrelated,
chop(@lines); foreach my $str (@lines) { chomp(@lines); }
should be
chomp(@lines);
In reply to Re: Ranking files, largest to smallest
by ikegami
in thread Ranking files, largest to smallest
by ewexperts
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |