Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Must have CLI of Perl's sed's n commandby Fletch (Bishop) |
on Jun 30, 2022 at 02:02 UTC ( [id://11145183]=note: print w/replies, xml ) | Need Help?? |
Your formatting is kind of terrible, but you can check $. and skip if the first line (next if $. == 1). Another option might be to use the trick of using -M and a version to get something to run before the magical while wrapping the -n does. Use something like -M5.010’;scalar <>;’ to have the first line read (and discarded).
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|