in reply to Re^2: how to change this code into perl
in thread how to change this code into perl
You're right. I tried to type a pattern I've used before, directly into the browser without having had my morning coffee. It should be:
perl -anle"@L = @F, next if $. == 1; print if $L[0] eq $F[0]; @L = @F; +" in.txt > out.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: how to change this code into perl
by perlnewbie012215 (Novice) on Aug 30, 2015 at 16:40 UTC | |
by BrowserUk (Patriarch) on Aug 30, 2015 at 16:58 UTC |