instead ofs|[\r\n]|<br />|g;
s/[\r\n]/\<br \>/g;
the other thing i'm wondering about is the square brackets... does that mean /[asdf\.]/ would search for each of those characters (a, s , d, f and Period) versus the string 'asdf.'
i know they're silly questions but i'm trying to get back up to speed with reading perl ... after about 8 months in visual basic for applications
there were so many REALLY nice things about working in VBA ... for example the editor will automatically fill display a list of the sub objects and methods of the object that you're working with... but then again the number of times i've struggled with the long way around a hash table or an array makes me really glad to be back in PerlScript (with a bit of Win32::OLE)
anyways ... i'm rambling :)
In reply to Re: Re: Simple Question for you guys.
by Buckaroo Buddha
in thread converting carriage returns to <br> tags (was: Simple Question for you guys)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |