This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Correct error msg for sub:lvalue{%h{k}} in sassign
authorFather Chrysostomos <sprout@cpan.org>
Fri, 20 May 2016 01:31:56 +0000 (18:31 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 20 May 2016 22:56:39 +0000 (15:56 -0700)
commitcc5f9b8acb940eaa010ae87bdf61c7c118da5bf7
treedfd3c3e1d76dc847a132c323d33612cfd6faabf4
parenta061ab0bf2cb11304132a96f31a2b0403912e9b6
Correct error msg for sub:lvalue{%h{k}} in sassign

This:

    sub foo : lvalue { %hash{'key'} }
    foo = 3;

was incorrectly giving ‘Can't modify key/value hash slice in list
assignment’.  There is no list assignment there.
pp.c
t/op/kvhslice.t