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:
Zefram
Date:
August 19, 2010 07:42
Subject:
Re: qr stringification: why are xism always present? I'm worriedabout backward compatibility
Message ID:
20100819144227.GH30465@lake.fysh.org
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.

-zefram

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