summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-31 23:52:14 -0800
committerFather Chrysostomos <sprout@cpan.org>2012-01-01 00:09:31 -0800
commitd0887bf355d814178137ea993a289e129329180b (patch)
tree8a620950bb852a857450e61ed171195f3aa777a7
parent89139cf8b9171f35c9a292b738281de09c5432ab (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 44f3e186b0..3e6b0b9135 100644
--- a/op.c
+++ b/op.c
@@ -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;
}