$j = 0
#you forgot the ;
until ($j = 10) {
while ( $line = <THATFILE>);
# should be while($line = <THATFILE>) {
print "$line\n";
$j++
# and then you need another } here
}

Looking at
print "$i - " . "$file_name\n";
why don't you just use
print "$i - $file_name\n";

Reply via email to