in reply to Re: Save all but line 32!
in thread Save all but line 32!

Penny wise but pound foolish.

Your program will read in all lines after line 32 before printing them. Usually that will be a lot slower than the comparison you save.

I do not understand your remark about $/. You aren't setting it, nor does any of the switches influence it. How could $/ be any different from the default?

My suggestion for the program:

perl -i -nwe 'print unless 32 .. 32' filename