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 $_;
In reply to Re: How to split into paragraphs?
by Firefly258
in thread How to split into paragraphs?
by jrw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |