in reply to
Re: Line numbering
in thread
Line numbering
As an alternative, you can decrement
$.
with no ill effects, apart from forgetting where you actually are. :)
perl -pe '/\S/ ? s/^/$.: / : --$.'
Comment on
Re^2: Line numbering
Select
or
Download
Code
In Section
Seekers of Perl Wisdom