File Coverage

blib/lib/Perl/APIReference/V5_022_001.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 22 22 100.0


line stmt bran cond sub pod time code
1             package Perl::APIReference::V5_022_001;
2 1     1   6 use strict;
  1         2  
  1         33  
3 1     1   3 use warnings;
  1         1  
  1         61  
4 1     1   4 use parent 'Perl::APIReference::V5_022_000';
  1         2  
  1         9  
5              
6             sub new {
7 1     1 1 3 my $class = shift;
8 1         6 my $obj = $class->SUPER::new(@_);
9              
10 1         10 $obj->{perl_version} = '5.022001';
11 1         3 bless $obj => $class;
12             # Override the few changes since 5.22.0
13 1         4 $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.
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         4 $obj->{'index'}{'av_undef'} = {'text' => 'Undefines the array. The XS equivalent of C.
25              
26             As well as freeing all the elements of the array (like C), this
27             also frees the memory used by the av to store its list of scalars.
28              
29             See L for a note about the array possibly being invalid on
30             return.
31              
32             void av_undef(AV *av)','name' => 'av_undef'};
33 1         3 $obj->{'index'}{'call_sv'} = {'text' => 'Performs a callback to the Perl sub specified by the SV.
34              
35             If neither the C or C 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 will be used as the name of the sub to call.
38              
39             If the C flag is supplied, the SV may be a reference to a CV or
40             C will be used as the name of the method to call.
41              
42             If the C flag is supplied, C 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.
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         4 return $obj;
55             }
56              
57             1;