Menu{Master,Maestro,etc} question(s)
Fairlight
fairlite at fairlite.com
Thu May 10 06:46:52 PDT 2007
Is it just me, or did Jay Ashworth say:
> > {s/^(.+:[^:]+")[^"]+(".*)/$1${sub}$2/;}print;}' $2 $3 $1
>
> Oh, sure; cause that's *obviously* clearer.
>
> :-)
Was to me. :) I measure ease in replacements and regexp's by how few
backrefs there are. :) Yours was more explicit, but overkill as well.
> I see what you've done... but it's very close to More Proof that perl
> is a write-only language. :-) I saw your folo, too, but I figured I'd
> comment here, since the extra <> loop clouds the issue -- and therefore
> makes my point -- even better.
Nahhhh...I could read yours! :) It's just the whole TIMTOWTDI thing...there
is more than one way to do it. Incidentally and just FYI, you'll hardly
ever see \1, \2, et al in modern perl code. The backslash backrefs have
been depricated in favour of $1, $2, et al. I believe modern versions warn
you of this if you use -w, although I can't swear to it 100%. I know
-something- warned me about it some years back and I switched.
> I'll likely run your version, though. Thanks.
No problem.
mark->
--
No matter what your problems, modern medicine can help!
http://members.iglou.com/fairlite/fixital/
More information about the Filepro-list
mailing list