SHEIKH Sajjad wrote: > > What if I use the following? > > # replacing carridge return with carridge return > $in[$i] =~ s/\r/\r/g; > > But it does not work!
What did you expect it to do? It just replaces any cariage returns with carriage returns. You might as well as had 's/(.)/$1/g', i.e replace every character with itself. Why do you need to preserve carriage returns? Or do you mean line breaks? In your original post you referred to code that parsed the 'textarea' form field, but what you showed was some obsolete code for extracting CGI parameters, which I don't think causes your problem. You need to show us your code that processes the 'textarea' field. Just to reiterate. Use the standard module for CGI stuff (CGI.pm), its less buggy and more secure. -- Brian Raven ----------------------------------------------------------------------- The information contained in this e-mail is confidential and solely for the intended addressee(s). Unauthorised reproduction, disclosure, modification, and/or distribution of this email may be unlawful. If you have received this email in error, please notify the sender immediately and delete it from your system. The views expressed in this message do not necessarily reflect those of LIFFE Holdings Plc or any of its subsidiary companies. ----------------------------------------------------------------------- _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
