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
In reply to Re^3: how to change this code into perl
by BrowserUk
in thread how to change this code into perl
by perlnewbie012215
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |