develooper Front page | perl.perl5.porters | Postings from July 2013

Re: key/value hash slices summary

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
July 14, 2013 00:43
Subject:
Re: key/value hash slices summary
Message ID:
20130714004342.29439.qmail@lists-nntp.develooper.com
Ruslan Zakirov wrote:
> * lvalue functions. I think that returning a key/value slice from a lvalue
> function should be fatal, even if function is called as RHS.

That would not be consistent with other operators.

foreach(sub :lvalue { expr })

should be equivalent to

foreach(expr)

where caller and wantarray are not involved.


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