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

Re: Changes in m//m in 5.10

Thread Previous | Thread Next
Eric Brine
December 19, 2007 21:30
Re: Changes in m//m in 5.10
Message ID:
> 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/;"

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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About