This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
update newGIVENOP() doc for loss of lexical $_
[perl5.git] / op.c
diff --git a/op.c b/op.c
index c8b43f7..8a185a1 100644 (file)
--- a/op.c
+++ b/op.c
@@ -8937,8 +8937,8 @@ S_looks_like_bool(pTHX_ const OP *o)
 =for apidoc Am|OP *|newGIVENOP|OP *cond|OP *block|PADOFFSET defsv_off
 
 Constructs, checks, and returns an op tree expressing a C<given> block.
-C<cond> supplies the expression that will be locally assigned to a lexical
-variable, and C<block> supplies the body of the C<given> construct; they
+C<cond> supplies the expression to whose value C<$_> will be locally
+aliased, and C<block> supplies the body of the C<given> construct; they
 are consumed by this function and become part of the constructed op tree.
 C<defsv_off> must be zero (it used to identity the pad slot of lexical $_).