« blib/lib/Perlmazing/Perlmazing/replace_accented_characters.pm
↑ Summary
lib/Perlmazing/Perlmazing/Precompile/is_number.pm »
| 1 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 2 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use Perlmazing; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | 10 | ▶ | sub main { | ||||||||||||||||||||||||||
|
Subroutine
main: called CC=16 SCAR=28.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 6 | 10 | my $offset = 0; | |||||||||||||||||||||||||||
| 7 | 10 | ▶ | (@_) = ($_) if not @_ and defined $_; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
not @_ and defined $_
MC/DC0%0/2
not @_ and defined $_
not @_
defined $_
Truth table66%2/3
not(A) and B
A= not @_B= defined $_
| |||||||||||||||||||||||||||||
| 8 | 10 | ▶ | if (not defined wantarray) { | ||||||||||||||||||||||||||
|
Branch: 3 branches
| |||||||||||||||||||||||||||||
| 9 | 4 | foreach my $i (@_) { | |||||||||||||||||||||||||||
| 10 | 1 | ▶ | no warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 11 | 13 | ▶ | defined($i) ? print "$i\n" : print "\n"; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 12 | } | ||||||||||||||||||||||||||||
| 13 | 4 | ▶ | print "\n" if not @_; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 14 | ▶ | } elsif (defined wantarray and not wantarray) { | |||||||||||||||||||||||||||
|
Condition66%2/3
defined wantarray and not wantarray
MC/DC50%1/2
defined wantarray and not wantarray
defined wantarray
not wantarray
Truth table66%2/3
A and not(B)
A= defined wantarrayB= not wantarray
| |||||||||||||||||||||||||||||
| 15 | 3 | my $res; | |||||||||||||||||||||||||||
| 16 | 3 | foreach my $i (@_) { | |||||||||||||||||||||||||||
| 17 | 13 | ▶ | $res .= defined($i) ? "$i\n" : "\n"; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 18 | } | ||||||||||||||||||||||||||||
| 19 | 3 | ▶ | return "\n" if not @_; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 20 | 3 | return $res; | |||||||||||||||||||||||||||
| 21 | } elsif (wantarray) { | ||||||||||||||||||||||||||||
| 22 | 3 | my @res; | |||||||||||||||||||||||||||
| 23 | 3 | foreach my $i (@_) { | |||||||||||||||||||||||||||
| 24 | 13 | ▶ | push @res, defined($i) ? "$i\n" : "\n"; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||
| 26 | 3 | ▶ | return "\n" if not @_; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 27 | 3 | return @res; | |||||||||||||||||||||||||||
| 28 | } | ||||||||||||||||||||||||||||
| 29 | } | ||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||
| 31 | 1; | ||||||||||||||||||||||||||||