On Monday, May 20, 2002, at 07:36 , John Brooking wrote:
> --- drieux <[EMAIL PROTECTED]> wrote: >> use CGI qw/:standard/; >> >> for a specific illustration cf: >> > http://www.wetware.com/drieux/pbl/cgi/basicPagePopper.txt [..] > The code I included in the message was just > my test script for developing the regex, but in > reality, I'll be getting the input from a POST > parameter originating from a TEXTAREA form tag. mea kulpa - still learning. I wanted to show an iterative process - that would be able to collect a bunch of data from a source, and put each line of data into a parenthesis .... you want my $input="Para 1.\nPara 2.\nPara 3."; #we want to blow out the \n out my $p ='<p>'; my $endP = '</p>'; my $nl = '\n'; $input =~ s/$nl/$endP$p/g; my $output = $p . $input . $endP ; print "$output\n"; which generates <p>Para 1.</p><p>Para 2.</p><p>Para 3.</p> sorry for not getting it the first time around. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]