develooper Front page | perl.perl5.porters | Postings from December 2007

Re: Changes in m//m in 5.10

Thread Previous | Thread Next
From:
Eric Brine
Date:
December 19, 2007 21:30
Subject:
Re: Changes in m//m in 5.10
Message ID:
f86994700712191911s1844fd19kdb7ec20cddbc62c3@mail.gmail.com
>
> That bug report was for /m propagating to a regex used in a subroutine
> called from the replacement part of a substitution, which seems to be a
> completely different situation.
>

Note that qr/^foo/ instructs Perl to turn off multi-line mode

   >perl -le"print qr/^foo/;"
   (?-xism:^foo)

So it's the same situation. Multi-line mode is being propagated to other
regexes with multi-line mode off, solely because the "victim" regexes where
executed while processing a multi-line regex.

ELB

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