in reply to Re: strip perl comment lines
in thread strip perl comment lines
But the final print statement:
Failed on 5.00503 with the warning:print ($good_lines+$bad_lines) . "lines read from $infile\n", "$bad_lines comment lines detected in $infile\n", "$good_lines lines written to $outfile\n";
So /me sweeps up around the monastery:print (...) interpreted as function at unc_rep.pl line 40.
ps - fixed omission of the 2nd $0 in the original.my$lines=($good_lines+$bad_lines); print "$lines lines read from $infile\n", "$bad_lines comment lines detected in $infile\n", "$good_lines lines written to $outfile\n";
|
|---|