develooper Front page | perl.perl5.porters | Postings from March 2011

Re: [perl #84774] local $_ calls STORE when $_ is aliased to atied hash element

Thread Previous | Thread Next
From:
Jesse Vincent
Date:
March 19, 2011 10:21
Subject:
Re: [perl #84774] local $_ calls STORE when $_ is aliased to atied hash element
Message ID:
20110319150011.GB3102@puppy



On Fri 18.Mar'11 at 14:43:24 +0000, Dave Mitchell wrote:
> On Fri, Mar 18, 2011 at 12:22:07AM -0700, Jan Dubois wrote:
> > I have implemented this (at runtime, not compiletime) with the attached
> > patch. "local $_" will strip *all* types of magic from $_, not just
> > tie() magic, so it doesn't matter what $_ has been aliased too, it is
> > always safe to localize it.  It does not affect localization of any
> > other scalars, so File::chdir is unaffected.
> > 
> > It obviously needs additional tests, and changes to perlsub.pod, but
> > I would first like to get a ruling from Jesse if this is acceptable
> > for blead, and ideally a review from Dave if the patch could have
> > any other side-effects that I have overlooked.
> 
> It looks good to me.

I'm ok with this. 

thanks, everybody.

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