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

[perl #47357] B::Deparse and map +{ $_ => 1 }

Thread Previous
From:
James E Keenan via RT
Date:
August 13, 2012 16:52
Subject:
[perl #47357] B::Deparse and map +{ $_ => 1 }
Message ID:
rt-3.6.HEAD-11172-1344901942-325.47357-15-0@perl.org
On Sun Nov 11 17:32:31 2007, sprout wrote:
> Deparse does nothing to disambiguate between hash refs and blocks (for  
> map, grep, print etc.) when perl would interpret the code it produces  
> incorrectly as a result.
> 
> For example, in every case in which a block or anonymous hash can  
> occur, +{ $_ => 1 } and {; foo => $_ } will be deparsed incorrectly.
> 

Father C:

Could you provide a few more explicit examples of this problem?  (I had
trouble constructing test cases from the information provided.)

Thank you very much.
Jim Keenan


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

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