This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Assignment to \(@array)
authorFather Chrysostomos <sprout@cpan.org>
Tue, 30 Sep 2014 05:21:21 +0000 (22:21 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 11 Oct 2014 07:10:13 +0000 (00:10 -0700)
commitbdaf10a52f7152c8c7cb0a106489016892f093cd
tree7d5e9e54d99d5417965667ffac4a871e9f2db92b
parent4cb217963bb5dd7a847ee100592f6abd696c1f41
Assignment to \(@array)

This is a slurpy lvalue that gobbles up all the rhs elements, which
are expected to be references.  So \(@a)=\(@b) makes @a share the
same elements as @b.

We implement this by pushing a null on to the stack as a special
marker that pp_aassign will recognise.

I decided to change the wording for the \local(@a)=... error
slightly, from what my to-do tests had.

Some of the other to-do tests were badly written and had to be
fixed up a bit.
op.c
pp.c
pp_hot.c
t/op/lvref.t