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

[perl #67694] Re: [perl #105850] $_ does not work as expected within "given" block

Thread Previous
From:
Father Chrysostomos via RT
Date:
December 10, 2011 12:22
Subject:
[perl #67694] Re: [perl #105850] $_ does not work as expected within "given" block
Message ID:
rt-3.6.HEAD-5084-1323548516-1962.67694-15-0@perl.org
On Sat Dec 10 12:04:57 2011, tom christiansen wrote:
> "Father Chrysostomos via RT" <perlbug-followup@perl.org> wrote
>    on Sat, 10 Dec 2011 11:51:53 PST: 
> 
> > This is a known issue, #67694.  given does an implicit ‘my $_’.  See
> > also ticket #90018 and ticket #53186 (marked as resolved, even though
> > it isn’t).
> 
> > RJBS: Would you be adverse to changing ‘given’ to alias $_ properly,
> > or is it too close to 5.16 at this stage?
> 
> I've always felt this to be a bug, and would like to see some way
> to get the more expected/normal behavior.  I just don't know how 
> to make the omelette without breaking any eggs (read, existing code).

Use powdered eggs. :-)

-- 

Father Chrysostomos


Thread Previous


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