From 4929bf7bc76235df307ee4ade0f6222410e8b46b Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Tue, 29 Feb 2000 22:29:36 +0000 Subject: fix pods to reflect newer canonical names for call_sv() etc. p4raw-id: //depot/perl@5371 --- pod/perlguts.pod | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pod/perlguts.pod') diff --git a/pod/perlguts.pod b/pod/perlguts.pod index eec6edca8d..2686c3991b 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -176,7 +176,7 @@ have "magic". See L later in this document. If you know the name of a scalar variable, you can get a pointer to its SV by using the following: - SV* perl_get_sv("package::varname", FALSE); + SV* get_sv("package::varname", FALSE); This returns NULL if the variable does not exist. @@ -287,7 +287,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* perl_get_av("package::varname", FALSE); + AV* get_av("package::varname", FALSE); This returns NULL if the variable does not exist. @@ -362,7 +362,7 @@ specified below. If you know the name of a hash variable, you can get a pointer to its HV by using the following: - HV* perl_get_hv("package::varname", FALSE); + HV* get_hv("package::varname", FALSE); This returns NULL if the variable does not exist. @@ -535,9 +535,9 @@ to write: 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* perl_get_sv("package::varname", TRUE); - AV* perl_get_av("package::varname", TRUE); - HV* perl_get_hv("package::varname", TRUE); + SV* get_sv("package::varname", TRUE); + AV* get_av("package::varname", TRUE); + HV* get_hv("package::varname", TRUE); Notice the use of TRUE as the second parameter. The new variable can now be set, using the routines appropriate to the data type. @@ -710,7 +710,7 @@ following code: extern int dberror; extern char *dberror_list; - SV* sv = perl_get_sv("dberror", TRUE); + SV* sv = get_sv("dberror", TRUE); sv_setiv(sv, (IV) dberror); sv_setpv(sv, dberror_list[dberror]); SvIOK_on(sv); -- cgit v1.2.1