[thelist] Re: Formatting textarea

Adrian Fischer adrian at logo-logic.com
Sun Feb 18 14:07:35 CST 2001

Subject: Formatting textarea

 Hi Gang,
 I just dont get it!!!
 This little snippet of perl should take the contents of the the form field
 named 'yourad', strip the double lines and replace them with <p> etc...but
 it doesnt matter how I fiddle with it or where I put it nothing happens.
 This is really starting to annoy me.  Can anyone offer a clue?
 $form{'yourad'}=~ s/\cM/ /g;
 $form{'yourad'}=~ s/\n\n/<P>/g;
 $form{'yourad'}=~ s/\n/<BR>/g;
 Adrian Fischer

More information about the thelist mailing list