| 1 | package DWH_File::Subscript; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 9 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 9 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 9 | ▶ | use vars qw( @ISA $VERSION ); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | use overload | ||||||||||||||||||||
| 7 | 9 | ▶ | '""' => \&to_string, | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | 9 | fallback => 1; | |||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 9 | @ISA = qw( ); | |||||||||||||||||||
| 11 | 9 | $VERSION = 0.01; | |||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 329 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.2
Pod
undocumented
| |||||||||||||||||||||
| 14 | 329 | my ( $this, $string ) = @_; | |||||||||||||||||||
| 15 | 329 | ▶ | my $class = ref $this || $this; | ||||||||||||||||||
|
Condition33%1/3
ref $this || $this
MC/DC0%0/2
ref $this || $this
ref $this
$this
Truth table33%1/3
A || B
A= ref $thisB= $this
| |||||||||||||||||||||
| 16 | 329 | my $self = \$string; | |||||||||||||||||||
| 17 | 329 | bless $self, $class; | |||||||||||||||||||
| 18 | 329 | return $self; | |||||||||||||||||||
| 19 | } | ||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 329 | ▶ | sub from_input { | ||||||||||||||||||
|
Subroutine
from_input: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||||||||||||
| 22 | 329 | my ( $this, $owner, $actual ) = @_; | |||||||||||||||||||
| 23 | 329 | ▶ | defined $actual or $actual = ''; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 24 | 329 | return $this->new( pack( 'L', $owner->{ id } ) . $actual ); | |||||||||||||||||||
| 25 | } | ||||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | 463 | ▶ | sub to_string { | ||||||||||||||||||
|
Subroutine
to_string: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 28 | 463 | return ${ $_[ 0 ] }; | |||||||||||||||||||
| 29 | } | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | 80 | ▶ | sub actual { | ||||||||||||||||||
|
Subroutine
actual: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 32 | 80 | my ( $ignore, $actual ) = unpack "La*", ${ $_[ 0 ] }; | |||||||||||||||||||
| 33 | 80 | return $actual; | |||||||||||||||||||
| 34 | } | ||||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | 9 | 1; | |||||||||||||||||||
| 37 | |||||||||||||||||||||
| 38 | __END__ | ||||||||||||||||||||