Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2017-11-17 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (276 votes). Check out past polls.

    Notices?