| 1 | package perl5i::1::UNIVERSAL; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | # Methods which apply to all autoboxed objects | ||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 1 | require Carp; | |||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | sub alias { | ||||||||||||||||||||||||||||
| 11 | 6 | ▶ | my $self = shift; | ||||||||||||||||||||||||||
|
Subroutine
alias: called CC=4 SCAR=14.3
Pod
undocumented
| |||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 6 | ▶ | Carp::croak("Not enough arguments given to alias()") unless @_; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 6 | my @name = @_; | |||||||||||||||||||||||||||
| 16 | 6 | ▶ | unshift @name, (caller)[0] unless @name > 1 or grep /::/, @name; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
@name > 1 or grep /::/, @name
MC/DC0%0/2
@name > 1 or grep /::/, @name
@name > 1
grep /::/, @name
Truth table33%1/3
A or B
A= @name > 1B= grep /::/, @name
| |||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | 6 | my $name = join "::", @name; | |||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | 1 | ▶ | no strict 'refs'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 21 | 6 | *{$name} = $self; | |||||||||||||||||||||||||||
| 22 | 6 | return 1; | |||||||||||||||||||||||||||
| 23 | } | ||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||
| 25 | 0 | ▶ | sub is_number { return } | ||||||||||||||||||||||||||
|
Subroutine
is_number: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 26 | 0 | ▶ | sub is_positive { return } | ||||||||||||||||||||||||||
|
Subroutine
is_positive: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 27 | 0 | ▶ | sub is_negative { return } | ||||||||||||||||||||||||||
|
Subroutine
is_negative: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 28 | 0 | ▶ | sub is_int { return } | ||||||||||||||||||||||||||
|
Subroutine
is_int: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 29 | 0 | ▶ | sub is_integer { return } | ||||||||||||||||||||||||||
|
Subroutine
is_integer: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 30 | 0 | ▶ | sub is_decimal { return } | ||||||||||||||||||||||||||
|
Subroutine
is_decimal: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||
| 32 | 1 | 1; | |||||||||||||||||||||||||||