Perl Monk, Perl Meditation | |
PerlMonks |
Re: Even and uneven numbers as RegExby broquaint (Abbot) |
on Sep 27, 2004 at 11:30 UTC ( [id://394121]=note: print w/replies, xml ) | Need Help?? |
A one-line solution would be
That will remove all even numbered lines in the file.
HTH
_________
In Section
Seekers of Perl Wisdom
|
|