« blib/lib/Astro/App/Satpass2/FormatTime/Cldr.pm
↑ Summary
blib/lib/Astro/App/Satpass2/Locale/C.pm »
| 1 | package Astro::App::Satpass2::Wrap::Array; | ||||||||||
| 2 | |||||||||||
| 3 | 8 | ▶ | use 5.008; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 8 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 8 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 8 | ▶ | use Astro::App::Satpass2::Utils qw{ ARRAY_REF @CARP_NOT }; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 8 | our $VERSION = '0.059'; | |||||||||
| 11 | |||||||||||
| 12 | 219 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=3 SCAR=12.7
Pod
documented
| |||||||||||
| 13 | 219 | my ( $class, $array ) = @_; | |||||||||
| 14 | 219 | ▶ | ref $class and $class = ref $class; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 219 | ▶ | if ( ARRAY_REF ne ref $array ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 0 | require Carp; | |||||||||
| 17 | 0 | Carp::croak( 'Argument must be an array reference' ); | |||||||||
| 18 | } | ||||||||||
| 19 | 219 | return bless $array, $class; | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 638 | ▶ | sub dereference { | ||||||||
|
Subroutine
dereference: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 23 | 638 | my ( $self ) = @_; | |||||||||
| 24 | 638 | return @{ $self }; | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 8 | 1; | |||||||||
| 28 | |||||||||||
| 29 | __END__ | ||||||||||