in reply to Re: Simple Question for you guys.
in thread converting carriage returns to <br> tags (was: Simple Question for you guys)
instead ofs|[\r\n]|<br />|g;
s/[\r\n]/\<br \>/g;
are the pipes somehow more efficient in this case or just more readable?
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 :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Simple Question for you guys.
by voyager (Friar) on May 18, 2001 at 21:57 UTC | |
Re: Re: Re: Simple Question for you guys.
by AidanLee (Chaplain) on May 18, 2001 at 22:01 UTC |