develooper Front page | perl.perl5.porters | Postings from August 2010

Re: qr stringification: why are xism always present? I'm worriedabout backward compatibility

Thread Previous | Thread Next
From:
Ben Morrow
Date:
August 2, 2010 03:12
Subject:
Re: qr stringification: why are xism always present? I'm worriedabout backward compatibility
Message ID:
20100802101152.GA77318@osiris.mauzo.dyndns.org
Quoth ben@morrow.me.uk (Ben Morrow):
> Quoth demerphq@gmail.com (demerphq):
> 
> > What is the difference between /(?~i:foo)/ and /(?i)foo/
> 
> Nothing. However,
> 
>     "FOO" !~ /(?~s:foo)/i
> 
> but
> 
>     "FOO" =~ /(?s:foo)/i

Sorry, I meant

    "FOO" =~ /(?s)foo/i

of course. The two existing syntaxes both inherit any unspecified
modifiers from the outside, which is what we're trying to avoid.

Ben


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About