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

Re: Changes in m//m in 5.10

Thread Previous | Thread Next
Chris Dolan
December 23, 2007 05:57
Re: Changes in m//m in 5.10
Message ID:
On Dec 23, 2007, at 5:51 AM, demerphq wrote:

> It will warn IFF the only content in the pattern is a $qr and the
> modifiers the qr// was compiled with are different from the modifiers
> on the actual match such that the discrepancy would change the
> semantics of the match.
> So assuming that Chris always uses /m the only time that Chris might
> see warnings is if he wrote a procedure that accepts qr// objects from
> outside his code and then executed them using the /m modifier. But
> then he could disable the warning, or drop the /m modifier, or
> whatever.
> I really cant see this warning causing a lot of trouble.
> yves

Oh, if my practice of /m everywhere doesn't trigger the warning, then  
I have no problem at all.  Without reading the patch I had assumed it  
was a compile-time warning that looked for a single scalar in the m// 
m.  My mistake.

Keep up the good work!  :-)


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