This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Porting/todo.pod: Rmv ‘LVALUE functions for lists’
authorFather Chrysostomos <sprout@cpan.org>
Tue, 7 Jun 2016 05:25:19 +0000 (22:25 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 7 Jun 2016 05:25:19 +0000 (22:25 -0700)
$ ./perl -Ilib -e 'sub foo :lvalue{@hash{"foo","bar"}} (foo) = (3,4); use Data::Dumper; warn Dumper \%hash'
$VAR1 = {
          'foo' => 3,
          'bar' => 4
        };
$ ./perl -Ilib -e 'sub foo :lvalue{@arr[1,2]} (foo) = (3,4); use Data::Dumper; warn Dumper \@arr'
$VAR1 = [
          undef,
          3,
          4
        ];

Apparently slices do work.


No differences found