[tpm] New Regex question - partially solved
Rob Janes
janes.rob at gmail.com
Sun Oct 28 15:11:13 PDT 2012
perl is supposed to be a swiss army knife of things. that's actually what
i like about it, it's very accepting, very canadian, very multicultural.
I've been doing perl for quite some time now, and I can say very definitely
from what I've seen, that using \1 instead of $1 is not going to cost
anybody a perl job, if that's the job you want. Sure, if Uri's the
interviewer you better be careful, but otherwise I've never seen anybody
else really react about something like that. If you're doing perl, you're
usually pretty accepting of different styles. There are few courses in
perl at university so virtually all of us are self-taught. Python on the
other hand - a lot of people come out of school with python, and there's a
certain air about them and their use of python. same for c++ and java.
people doing those languages are often big on style, and I've seen code
reviews completely usurped by style issues with not one glance to
functionality, passing the code on correcting spelling mistakes in the
comments while leaving gaping holes in the logic. so ...
and the last word award goes to ....
On Sun, Oct 28, 2012 at 5:30 PM, Liam R E Quin <liam at holoweb.net> wrote:
> On Sun, 2012-10-28 at 17:01 -0400, Uri Guttman wrote:
> > On 10/28/2012 02:22 PM, Liam R E Quin wrote:
> \
> > > You're talking past one another, because Rob missed the word
> > > "replacement" in the original note. I think Rob thought it was a
> > > question about back-references, which indeed use \1 (or the extended
> > > newer syntax).
> >
> > please don't tell me what i was saying.
> I'm not trying to do that - I'm sorry if it seemed that way.
> > he was using \1 in the
> > replacement and i kept saying replacement.
>
> Yes. That is why I said you are talking past one another - yuo are each
> saying things the other is not noticing. I was not criticising your perl
> knowledge.
>
> Liam
>
> --
> Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
> Pictures from old books: http://fromoldbooks.org/
> Co-author, 5th edition of 'Beginning XML', Wrox, July 2012
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20121028/0d61ab9d/attachment.html>
More information about the toronto-pm
mailing list