Propagate lvalue context only to children of list ops which are not in void context.
authorGerard Goossen <gerard@ggoossen.net>
Sat, 13 Aug 2011 16:38:13 +0000 (18:38 +0200)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 16 Aug 2011 03:27:01 +0000 (20:27 -0700)
commit5c906035ffb6b2857a0f941a97ac9e7bb4126275
tree1207023797ece7e334d596be0a38f272bf596734
parentc192154b7b5060196110d20f17b18135fa216641
Propagate lvalue context only to children of list ops which are not in void context.

Children list ops might be in void context because the list is in scalar
context. A test that discarded elements in a list are not assigned lvalue
context is added.
Children of a list op might also be in void context because they are
special entersub ops for attributes. This patch makes the
OPpENTERSUB_NOMOD flag redundant.
op.c
t/op/list.t