while (my $line = <$infile>){ if ($line =~ s/T/TT/g){ # log $line and $. (line number) } print $new_file $line; } # overwrite old file with new file here
In reply to Re: Global substitution and report
by moritz
in thread Global substitution and report
by Outaspace
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |