develooper Front page | perl.perl5.porters | Postings from June 2003

Re: [perl #22354] s/// flags influence regex use in the replacement body

From:
Rafael Garcia-Suarez
Date:
June 4, 2003 05:21
Subject:
Re: [perl #22354] s/// flags influence regex use in the replacement body
Message ID:
20030604141819.72721880.rgarciasuarez@free.fr
perl5-porters@ton.iguana.be (Ton Hospel) wrote:
> So setting $* to undef (or 0) indeed solves it.
> However, the test before the local shows that $* actually
> already was undef !. But removing the local makes it fail again.

That's normal, because reading the value of $* at this point doesn't
give the value of the internal PL_multiline variable, which was == 1.

> Making $* lexically scoped probably already breaks pograms that still
> depend on it. So kill it, I'd say. It has been documented as deprecated
> for a long time, and gives a deprecation warning in actual code.

I like this idea.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About