# read linewise from handle test to $_
while (<test>) {
# read again one line from handle test
$_ =~ <test>;
chomp;
s/(th)/TH/gi;
print "$_\n";
}
Solution:
while ( my $line = <test> ) {
$line =~ s/th/TH/gi;
print $line;
}
In reply to Re: Why are lines being skipped in output?
by linuxer
in thread Why are lines being skipped in output?
by negzero7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |