in reply to Re^3: Trim Two Characters On Line
in thread Trim Two Characters On Line
while(<IN>) { my $line = $_; my $number = () = $line =~ /\,/gi; $line =~ substr( $line, -2, 2, '' ) if ($number > 79); print OUT "$line"; } close OUT; close IN; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Trim Two Characters On Line
by AnomalousMonk (Archbishop) on Oct 23, 2020 at 21:53 UTC | |
|
Re^5: Trim Two Characters On Line
by hippo (Archbishop) on Oct 23, 2020 at 20:38 UTC | |
|
Re^5: Trim Two Characters On Line
by soonix (Chancellor) on Oct 23, 2020 at 22:02 UTC | |
by AnomalousMonk (Archbishop) on Oct 23, 2020 at 22:18 UTC | |
|
Re^5: Trim Two Characters On Line
by BillKSmith (Monsignor) on Oct 24, 2020 at 16:59 UTC |