So where do you "print out the data" ? In a console ( shell or dosprmpt ) ? or as a html page ?
If that's the first case, it should not be happened unless you do something to elimate the \n operator.... If the second case, assum you should know, HTML will not auto break line even in your souce is. So you better use print "<pre>$data</pre>" or $data =~ s/\n/<BR>/g; print $data ----- Original Message ----- From: "jmpond" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 30, 2002 5:31 AM Subject: HTML <textarea> contents into Perl CGI Hi, If this has been answered before please direct me there as I am at a loss as to where to look as there is so much info to plow thru. Situation: I am reading into my script via param() a textarea called Job Duties. When I print out that parameter in perl all of the new lines are ignored and it prints as one long string. Q: How do I get the perl print statement to recognize the new lines so that the printed output looks like the html input screen? Perhaps the print statement is the wrong thing to use but..... I've been looking at regex's and the split function and have been able to determine that there are infact newlines in the data but they are being ignore when I print out the data. Any assistance would be great. Thanks. Joe Pond [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]