This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
List assignment to package scalar ref
authorFather Chrysostomos <sprout@cpan.org>
Wed, 24 Sep 2014 20:22:49 +0000 (13:22 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 11 Oct 2014 04:56:33 +0000 (21:56 -0700)
commit26a50d995a0122ec4aec3392722aa70e74fe54f3
treea5f3f4a608bf9c774cdd3efcb31c3cdc0e0f5bf3
parente5e1ee61c50f938a3a8b7487d29d5128d4f9a909
List assignment to package scalar ref

\ on the lhs returns a special magical scalar with set-magic that does
the aliasing.

I considered having a separate abind op that would be like aassign,
but different.  However, I realised that for ($x, \$y) = ... to work
it would have to duplicate all of aassign.  So I went with the sim-
pler magic implementation.
mg.c
op.c
pp.c
t/op/lvref.t