Skip to content

Commit

Permalink
Porting/todo.pod: Rmv ‘LVALUE functions for lists’
Browse files Browse the repository at this point in the history
$ ./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.
  • Loading branch information
Father Chrysostomos committed Jun 7, 2016
1 parent f3fccad commit ebb13b5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Porting/todo.pod
Expand Up @@ -942,11 +942,6 @@ program if you pass the process ID. It would be good to do this with the Perl
debugger on a running Perl program, although I'm not sure how it would be
done." ssh and screen do this with named pipes in /tmp. Maybe we can too.

=head2 LVALUE functions for lists

The old perltodo notes that lvalue functions don't work for list or hash
slices. This would be good to fix.

=head2 regexp optimizer optional

The regexp optimizer is not optional. It should be configurable to be optional
Expand Down

0 comments on commit ebb13b5

Please sign in to comment.