summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2010-11-26 14:51:07 -0800
committerFather Chrysostomos <sprout@cpan.org>2010-11-26 14:51:07 -0800
commit001c3c51d1d471266e2a6c3da873e448b161c64b (patch)
tree7d649f9afd8d37a3b3d7fbc451d9d9e9e2332dd1 /op.c
parentbcc76ee34baf39636d60454c7d178f030ac755e3 (diff)
downloadperl-001c3c51d1d471266e2a6c3da873e448b161c64b.tar.gz
Clarify op_lvalue’s docs
as requested by Reini Urban [perl #78908]
Diffstat (limited to 'op.c')
-rw-r--r--op.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/op.c b/op.c
index 5346a89803..2da3db43d0 100644
--- a/op.c
+++ b/op.c
@@ -1420,10 +1420,14 @@ Propagate lvalue ("modifiable") context to an op and its children.
I<type> represents the context type, roughly based on the type of op that
would do the modifying, although C<local()> is represented by OP_NULL,
because it has no op type of its own (it is signalled by a flag on
-the lvalue op). This function detects things that can't be modified,
-such as C<$x+1>, and generates errors for them. It also flags things
-that need to behave specially in an lvalue context, such as C<$$x>
-which might have to vivify a reference in C<$x>.
+the lvalue op).
+
+This function detects things that can't be modified, such as C<$x+1>, and
+generates errors for them. For example, C<$x+1 = 2> would cause it to be
+called with an op of type OP_ADD and a C<type> argument of OP_SASSIGN.
+
+It also flags things that need to behave specially in an lvalue context,
+such as C<$$x = 5> which might have to vivify a reference in C<$x>.
=cut
*/