Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Must have CLI of Perl's sed's n command

by LanX (Saint)
on Jun 30, 2022 at 02:34 UTC ( [id://11145186]=note: print w/replies, xml ) Need Help??


in reply to Re: Must have CLI of Perl's sed's n command
in thread Must have CLI of Perl's sed's n command

> Your formatting is kind of terrible,

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11145186]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found