| 1 | package JavaScript::Toolbox; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 1 | require v5.6; | |||||||||||||||||||
| 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 | ▶ | use HTTP::BrowserDetect; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 1 | our $VERSION = '0.01'; | |||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 14 | 0 | my ($proto, %args) = @_; | |||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | 0 | ▶ | my $class = ref($proto) || $proto; | ||||||||||||||||||
|
Condition0%0/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 17 | 0 | my $self = {}; | |||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 0 | $self->{BROWSER} = new HTTP::BrowserDetect($ENV{'HTTP_USER_AGENT'}); | |||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 0 | bless ($self, $class); | |||||||||||||||||||
| 22 | 0 | return $self; | |||||||||||||||||||
| 23 | } | ||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 1 | 1; | |||||||||||||||||||
| 27 | __END__ | ||||||||||||||||||||