| 1 | package App::Easer; | ||||||||||||||||||||||||||||
| 2 | 45 | ▶ | use v5.24; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 45 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 45 | ▶ | use experimental qw< signatures >; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 45 | ▶ | no warnings qw< experimental::signatures >; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 45 | { our $VERSION = '2.016' } | |||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 44 | ▶ | sub import ($package, @args) { | ||||||||||||||||||||||||||
|
Subroutine
import: called CC=3 SCAR=11.0
| |||||||||||||||||||||||||||||
| 9 | 44 | my $api = 'V1'; # default | |||||||||||||||||||||||||||
| 10 | 44 | ▶ | $api = uc(shift @args) if @args && $args[0] =~ m{\A V\d+ \z}imxs; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
@args and $args[0] =~ /\A V\d+ \z/imsux
MC/DC100%2/2
@args and $args[0] =~ /\A V\d+ \z/imsux
@args
$args[0] =~ /\A V\d+ \z/imsux
Truth table100%3/3
A and B
A= @argsB= $args[0] =~ /\A V\d+ \z/imsux
| |||||||||||||||||||||||||||||
| 11 | 44 | require "App/Easer/$api.pm"; | |||||||||||||||||||||||||||
| 12 | 44 | "App::Easer::$api"->export_to_level(1, $package, @args); | |||||||||||||||||||||||||||
| 13 | } | ||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 45 | 1; | |||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | __END__ | ||||||||||||||||||||||||||||