summaryrefslogtreecommitdiff
path: root/pod/perlguts.pod
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-01-21 13:36:08 +0000
committerNicholas Clark <nick@ccl4.org>2009-01-21 17:09:11 +0000
commitcbfd0a879b2bf2ade4a309e6d56c08ba19f320e1 (patch)
tree7771d5ecf7d2b77cf43976ba2a814084ccbca4f5 /pod/perlguts.pod
parent6673a63c63e2a65dbfcc835d6499cc97c449c67b (diff)
downloadperl-cbfd0a879b2bf2ade4a309e6d56c08ba19f320e1.tar.gz
Update the documentation of get_av() to note that it calls Perl_gv_fetchpv(),
and hence the 'create' argument is actually 'flags'. Fix code and documentation that used TRUE or FALSE to use 0 or GV_ADD.
Diffstat (limited to 'pod/perlguts.pod')
-rw-r--r--pod/perlguts.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perlguts.pod b/pod/perlguts.pod
index 6d64c1352c..8231592db0 100644
--- a/pod/perlguts.pod
+++ b/pod/perlguts.pod
@@ -367,7 +367,7 @@ then nothing is done.
If you know the name of an array variable, you can get a pointer to its AV
by using the following:
- AV* get_av("package::varname", FALSE);
+ AV* get_av("package::varname", 0);
This returns NULL if the variable does not exist.
@@ -668,7 +668,7 @@ To create a new Perl variable with an undef value which can be accessed from
your Perl script, use the following routines, depending on the variable type.
SV* get_sv("package::varname", TRUE);
- AV* get_av("package::varname", TRUE);
+ AV* get_av("package::varname", GV_ADD);
HV* get_hv("package::varname", GV_ADD);
Notice the use of TRUE as the second parameter. The new variable can now