line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Astro::App::Satpass2::Wrap::Array; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
1910
|
use 5.008; |
|
8
|
|
|
|
|
31
|
|
4
|
|
|
|
|
|
|
|
5
|
8
|
|
|
8
|
|
43
|
use strict; |
|
8
|
|
|
|
|
19
|
|
|
8
|
|
|
|
|
165
|
|
6
|
8
|
|
|
8
|
|
35
|
use warnings; |
|
8
|
|
|
|
|
16
|
|
|
8
|
|
|
|
|
250
|
|
7
|
|
|
|
|
|
|
|
8
|
8
|
|
|
8
|
|
46
|
use Astro::App::Satpass2::Utils qw{ ARRAY_REF @CARP_NOT }; |
|
8
|
|
|
|
|
17
|
|
|
8
|
|
|
|
|
1640
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '0.051_01'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
219
|
|
|
219
|
1
|
1338
|
my ( $class, $array ) = @_; |
14
|
219
|
50
|
|
|
|
608
|
ref $class and $class = ref $class; |
15
|
219
|
50
|
|
|
|
633
|
if ( ARRAY_REF ne ref $array ) { |
16
|
0
|
|
|
|
|
0
|
require Carp; |
17
|
0
|
|
|
|
|
0
|
Carp::croak( 'Argument must be an array reference' ); |
18
|
|
|
|
|
|
|
} |
19
|
219
|
|
|
|
|
613
|
return bless $array, $class; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub dereference { |
23
|
638
|
|
|
638
|
1
|
1239
|
my ( $self ) = @_; |
24
|
638
|
|
|
|
|
955
|
return @{ $self }; |
|
638
|
|
|
|
|
1811
|
|
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |