Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-09-16 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (33 votes), past polls