yep, that's one way to express it.
> skip if the first line (next if $. == 1)
If that's the goal (???) $.-1 is false for the first line only, he could && it with the flip-flop's start condition.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^2: Must have CLI of Perl's sed's n command
by LanX
in thread Must have CLI of Perl's sed's n command
by abdan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |