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

RFC: Assignment to list repetition

Thread Next
From:
Father Chrysostomos
Date:
October 23, 2014 21:57
Subject:
RFC: Assignment to list repetition
Message ID:
20141023215735.11102.qmail@lists-nntp.develooper.com
Several times in the past I have wished I could write:

($foo, (undef)x3, $bar) = that_function();

But x is not allowed as an lvalue.  Is there any reason not to make
this work for the specific case of list repetition in list assignment?


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