develooper Front page | perl.perl5.porters | Postings from October 2014

[perl #22335] foreach auto dereference (feature request)

From:
Father Chrysostomos via RT
Date:
October 11, 2014 21:38
Subject:
[perl #22335] foreach auto dereference (feature request)
Message ID:
rt-4.0.18-32520-1413063522-1271.22335-15-0@perl.org
On Mon Dec 05 07:09:21 2011, eda@waniasset.com wrote:
> Father Chrysostomos via RT <perlbug-followup <at> perl.org> writes:
> 
> >foreach \my @subitem (@arrayrefs) {
> 
> If you do that, the consistency would also allow
> 
>     my @refs = ([ 1, 2 ], [ 3, 4 ]);
>     (\my @a, \my @b) = @refs;
> 
> That would be an even more useful feature than the foreach enhancement.
> 

As of commit 05f7c1e8a, you get both.

-- 

Father Chrysostomos


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



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