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:
Abigailperl -i -nwe 'print unless 32 .. 32' filename
In reply to Re: Save all but line 32!
by Abigail-II
in thread Save all but line 32!
by bronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |