summaryrefslogtreecommitdiff
path: root/gv.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-08-27 09:16:36 -0600
committerKarl Williamson <khw@cpan.org>2020-10-05 22:31:04 -0600
commit0f1c8062f72cd5a6540b0f9b0e551de6f3a912c2 (patch)
treefce17d6d8204511d9e681e2cda5bbf1c924799ab /gv.h
parent2351bb733429b72c5afa621b2c5ea3ce53f2fa9b (diff)
downloadperl-0f1c8062f72cd5a6540b0f9b0e551de6f3a912c2.tar.gz
Document GvSVn
and fill in details about GvSV
Diffstat (limited to 'gv.h')
-rw-r--r--gv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gv.h b/gv.h
index 36d77450c1..ddc48b9c37 100644
--- a/gv.h
+++ b/gv.h
@@ -78,6 +78,13 @@ struct gp {
Return the SV from the GV.
+Prior to Perl v5.9.3, this would add a scalar if none existed. Nowadays, use
+C<L</GvSVn>> for that, or compile perl with S<C<-DPERL_CREATE_GVSV>>. See
+L<perl5100delta>.
+
+=for apidoc Am|SV*|GvSVn|GV* gv
+Like C<L</GvSV>>, but creates an empty scalar if none already exists.
+
=for apidoc Am|AV*|GvAV|GV* gv
Return the AV from the GV.