X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/a43e79016be2ee77667099f1868307f7788bd811..36baafc9b54ecc5cdea82552276a70b5218958bb:/pod/perlguts.pod diff --git a/pod/perlguts.pod b/pod/perlguts.pod index 215f518..52a0170 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -351,11 +351,11 @@ to these new elements. Here are some other functions: - I32 av_len(AV*); + I32 av_top(AV*); SV** av_fetch(AV*, I32 key, I32 lval); SV** av_store(AV*, I32 key, SV* val); -The C function returns the highest index value in an array (just +The C function returns the highest index value in an array (just like $#array in Perl). If the array is empty, -1 is returned. The C function returns the value at index C, but if C is non-zero, then C will store an undef value at that index. @@ -604,17 +604,13 @@ macro and then check the return value. The most useful types that will be returned are: - SVt_IV Scalar - SVt_NV Scalar - SVt_PV Scalar - SVt_RV Scalar - SVt_PVAV Array - SVt_PVHV Hash - SVt_PVCV Code - SVt_PVGV Glob (possibly a file handle) - SVt_PVMG Blessed or Magical Scalar + < SVt_PVAV Scalar + SVt_PVAV Array + SVt_PVHV Hash + SVt_PVCV Code + SVt_PVGV Glob (possibly a file handle) -See the F header file for more details. +See L for more details. =head2 Blessed References and Class Objects @@ -1061,6 +1057,7 @@ will be lost. # PERL_MAGIC_arylen vtbl_arylen Array length ($#ary) % PERL_MAGIC_rhash (none) extra data for restricted hashes + & PERL_MAGIC_proto (none) my sub prototype CV . PERL_MAGIC_pos vtbl_pos pos() lvalue : PERL_MAGIC_symtab (none) extra data for symbol tables @@ -1076,7 +1073,7 @@ will be lost. element E PERL_MAGIC_env vtbl_env %ENV hash e PERL_MAGIC_envelem vtbl_envelem %ENV hash element - f PERL_MAGIC_fm vtbl_regdata Formline + f PERL_MAGIC_fm vtbl_regexp Formline ('compiled' format) g PERL_MAGIC_regex_global vtbl_mglob m//g target H PERL_MAGIC_hints vtbl_hints %^H hash @@ -1557,7 +1554,7 @@ within a C program. These four are: I32 call_sv(SV*, I32); I32 call_pv(const char*, I32); I32 call_method(const char*, I32); - I32 call_argv(const char*, I32, register char**); + I32 call_argv(const char*, I32, char**); The routine most often used is C. The C argument contains either the name of the Perl subroutine to be called, or a