Question: How do you find a paragraph break in perl? Synopsis: In a string I need to find the paragraph breaks and replace it with a ^P. Here is my code.
#!/usr/bin/perl -w
use strict;
use Text::Wrap;
$my text = 'This is the FIRST paragraph.
This is the SECOND paragraph.';
print wrap("\t","^P","$text");
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
