| 1 | package Perl::APIReference::V5_022_001; | ||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use parent 'Perl::APIReference::V5_022_000'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 7 | 1 | my $class = shift; | |
| 8 | 1 | my $obj = $class->SUPER::new(@_); | |
| 9 | |||
| 10 | 1 | $obj->{perl_version} = '5.022001'; | |
| 11 | 1 | bless $obj => $class; | |
| 12 | # Override the few changes since 5.22.0 | ||
| 13 | 1 | $obj->{'index'}{'av_clear'} = {'text' => 'Frees the all the elements of an array, leaving it empty. | |
| 14 | The XS equivalent of C<@array = ()>. See also L</av_undef>. | ||
| 15 | |||
| 16 | Note that it is possible that the actions of a destructor called directly | ||
| 17 | or indirectly by freeing an element of the array could cause the reference | ||
| 18 | count of the array itself to be reduced (e.g. by deleting an entry in the | ||
| 19 | symbol table). So it is a possibility that the AV could have been freed | ||
| 20 | (or even reallocated) on return from the call unless you hold a reference | ||
| 21 | to it. | ||
| 22 | |||
| 23 | void av_clear(AV *av)','name' => 'av_clear'}; | ||
| 24 | 1 | $obj->{'index'}{'av_undef'} = {'text' => 'Undefines the array. The XS equivalent of C<undef(@array)>. | |
| 25 | |||
| 26 | As well as freeing all the elements of the array (like C<av_clear()>), this | ||
| 27 | also frees the memory used by the av to store its list of scalars. | ||
| 28 | |||
| 29 | See L</av_clear> for a note about the array possibly being invalid on | ||
| 30 | return. | ||
| 31 | |||
| 32 | void av_undef(AV *av)','name' => 'av_undef'}; | ||
| 33 | 1 | $obj->{'index'}{'call_sv'} = {'text' => 'Performs a callback to the Perl sub specified by the SV. | |
| 34 | |||
| 35 | If neither the C<G_METHOD> or C<G_METHOD_NAMED> flag is supplied, the | ||
| 36 | SV may be any of a CV, a GV, a reference to a CV, a reference to a GV | ||
| 37 | or C<SvPV(sv)> will be used as the name of the sub to call. | ||
| 38 | |||
| 39 | If the C<G_METHOD> flag is supplied, the SV may be a reference to a CV or | ||
| 40 | C<SvPV(sv)> will be used as the name of the method to call. | ||
| 41 | |||
| 42 | If the C<G_METHOD_NAMED> flag is supplied, C<SvPV(sv)> will be used as | ||
| 43 | the name of the method to call. | ||
| 44 | |||
| 45 | Some other values are treated specially for internal use and should | ||
| 46 | not be depended on. | ||
| 47 | |||
| 48 | See L<perlcall>. | ||
| 49 | |||
| 50 | NOTE: the perl_ form of this function is deprecated. | ||
| 51 | |||
| 52 | I32 call_sv(SV* sv, VOL I32 flags)','name' => 'call_sv'}; | ||
| 53 | |||
| 54 | 1 | return $obj; | |
| 55 | } | ||
| 56 | |||
| 57 | 1 | 1; | |