http://www.perlmonks.org?node_id=990953


in reply to Regex copy and paste help

A way could be if you slurp the whole file (8-900 lines is not so much) and you check if something is followed by a newline and itself. You could delete the first occurence. This is a very roundabout way, but this came first to me.

I'm too lazy to be proud of being impatient.