develooper Front page | perl.perl5.porters | Postings from August 2012

[perl #114020] given should localize topic, not lexicalize topic

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
August 1, 2012 20:41
Subject:
[perl #114020] given should localize topic, not lexicalize topic
Message ID:
rt-3.6.HEAD-11172-1343878884-571.114020-15-0@perl.org
On Fri Jul 06 16:14:33 2012, sprout wrote:
> On Fri Jul 06 16:07:30 2012, rjbs wrote:
> > 
> > This is a bug report for perl from rjbs@cpan.org,
> > generated with the help of perlbug 1.39 running under perl 5.16.0.
> > 
> > 
> > -----------------------------------------------------------------
> > [Please describe your issue here]
> > 
> >     perl -E 'given (10) { say $::_; say $_ }'
> > 
> > Prints "\n10\n"
> > 
> > It should print "10\n10\n"
> > 
> > Lexical topicalization by given is the cause of nearly endless grief
> >    and
> > very little, if any, benefit.
> 
> Does this mean I can merge my patch now (which breaks none of CPAN)?

Since you said

> It should print "10\n10\n"

I am taking that as a ‘yes’.

Please revert b5a648148c and c74de2fbdc and re-open #90018 if you think
I was too hasty.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=114020

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