in reply to Save all but line 32!
Offtopic for the site, but sed's a much better tool for that job. It's very easy to do with sed addressing:
Sadly, I don't have a clever or shorter way to do it in perl. The number 32 can be anything, of coursesed -n 32\!p filename