Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to split into paragraphs?

by ikegami (Pope)
on Nov 16, 2006 at 05:39 UTC ( #584376=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    local $/ = '';
    print OUT ("<$_>")
       while <IN>;
    
  2. or download this
    $out = join '',
           map { "<$_>" } 
           map { /\G((?:(?!\n\n).)*\n+|.+\z)/sg }
           $in;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://584376]
help
Chatterbox?
[marto]: good morning all, snow day here, won't make it to the office
[Corion]: marto: Oof - that means taking a day off or can you work from home?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2018-01-16 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (175 votes). Check out past polls.

    Notices?