|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Regex copy and paste helpby nemesdani (Friar) |
| on Aug 31, 2012 at 09:05 UTC ( #990953=note: print w/ replies, xml ) | Need 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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||