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

RFC: Assignment to list repetition

Thread Next
Father Chrysostomos
October 23, 2014 21:57
RFC: Assignment to list repetition
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About