Just another Perl shrine | |
PerlMonks |
Re: Skip 2 new linesby aquarium (Curate) |
on Nov 08, 2010 at 04:42 UTC ( [id://870024]=note: print w/replies, xml ) | Need Help?? |
and yet another approach = first replace all \n\n with a special character or character sequence that won't appear in normal text. then do whatever you want to do with single \n's and whatever other processing. then finally expand out the special character or sequence back to \n\n. this is a bit long winded, but doesn't fall into the traps of complex regular expressions that can trip up when you're not looking.
the hardest line to type correctly is: stty erase ^H
In Section
Seekers of Perl Wisdom
|
|