diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-12-31 23:52:14 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-01-01 00:09:31 -0800 |
commit | d0887bf355d814178137ea993a289e129329180b (patch) | |
tree | 8a620950bb852a857450e61ed171195f3aa777a7 | |
parent | 89139cf8b9171f35c9a292b738281de09c5432ab (diff) | |
download | perl-d0887bf355d814178137ea993a289e129329180b.tar.gz |
Correct comment in op.c
‘Backward compatibility mode’ is poppycock, I’m afraid. When part of
an argument list a sub call it may or may not be an lvalue. That can-
not be determined until the value passed is (or is not) assigned to.
It has little to do with backward compatibility.
-rw-r--r-- | op.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1759,7 +1759,7 @@ Perl_op_lvalue_flags(pTHX_ OP *o, I32 type, U32 flags) |(OPpENTERSUB_INARGS * (type == OP_LEAVESUBLV)); PL_modcount = RETURN_UNLIMITED_NUMBER; if (type == OP_GREPSTART || type == OP_ENTERSUB || type == OP_REFGEN) { - /* Backward compatibility mode: */ + /* Potential lvalue context: */ o->op_private |= OPpENTERSUB_INARGS; break; } |