diff options
author | Gerard Goossen <gerard@ggoossen.net> | 2011-08-31 15:55:26 +0200 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-09-01 12:45:11 -0700 |
commit | 0e9700df31679b575960004d0c9d53e4f67341b3 (patch) | |
tree | a173c48eb7c8aaec2532c0b2b58d70c639630960 /cop.h | |
parent | 6c5d44995b59b5064afd13d482ddd637f85f4db5 (diff) | |
download | perl-0e9700df31679b575960004d0c9d53e4f67341b3.tar.gz |
Use OPpDEREF for lvalue sub, such that the flags contains the deref type, instead of deriving it from the opchain.
Also contains a test where using the opchain to determine the deref
type fails.
Diffstat (limited to 'cop.h')
-rw-r--r-- | cop.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -643,7 +643,7 @@ struct block_format { ? 0 : Perl_was_lvalue_sub(aTHX); \ PUSHSUB_BASE(cx) \ cx->blk_u16 = PL_op->op_private & \ - (phlags|OPpENTERSUB_DEREF); \ + (phlags|OPpDEREF); \ } /* variant for use by OP_DBSTATE, where op_private holds hint bits */ |