Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Skip 2 new lines

by aquarium (Curate)
on Nov 08, 2010 at 04:42 UTC ( [id://870024]=note: print w/replies, xml ) Need Help??


in reply to Skip 2 new lines

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://870024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-25 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found