in reply to Ranking files, largest to smallest
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);
|
|---|