in reply to Re: How to Print Every Other Line
in thread How to Print Every Other Line

Replace if with unless to print even lines.

Or "1 & $." with "0 & $.". Or with "1 ^ $." Or ...

--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee

Replies are listed 'Best First'.
Re^3: How to Print Every Other Line
by Jasper (Chaplain) on Jul 01, 2004 at 08:35 UTC
    Not entirely sure "0 & $." will do anything, and "$. ^ 1" will print everything but line 1. These probably aren't the desired results.