in reply to How to split into paragraphs?
If I wasnt too particular about the double-newlines, I would use split instead.$_ = q| abc: asdf1 asdf2 def: asdf3 ghi: asdf4 asdf5 |; local $/ = ""; # or $/ = "\n\n"; open IN, '<', \$_ or warn "opening \$_ failed"; my $n; $n .= $_ for <IN>; print "exact" if $n eq $_;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to split into paragraphs?
by jrw (Monk) on Nov 28, 2006 at 01:45 UTC |