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:
Ævar Arnfjörð Bjarmason
Date:
August 19, 2010 07:47
Subject:
Re: qr stringification: why are xism always present? I'm worriedabout backward compatibility
Message ID:
AANLkTimHAK11r+wibYdwoyH-iAF0kBxSPhBwaHGbTYXM@mail.gmail.com
On Thu, Aug 19, 2010 at 14:42, Zefram <zefram@fysh.org> wrote:
> Abigail wrote:
>>written code that actually scans for (?xism:) constructs and modifies
>>them. Such code would break if (?xism:) is going to be replaced with (?~:).
>
> Without (?^:) it's liable to break whenever new flags are added.
>
>>                                 '(?si-xm:)' tells me exactly what's
>>enabled, and what's disabled, regardless of the Perl version.
>
> No, it doesn't.  It doesn't tell you whether the /p flag is enabled.

/p like /e and /o and a few others isn't part of the regex proper, but
has to do with how it's processed once it's time to evaluate it.

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