| 1 | 22 | ▶ | use 5.008; # utf8 | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 22 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 22 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 22 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | package Path::IsDev::Role::Heuristic; | ||||||||||
| 7 | |||||||||||
| 8 | 22 | our $VERSION = '1.001003'; | |||||||||
| 9 | |||||||||||
| 10 | # ABSTRACT: Base role for Heuristic things. | ||||||||||
| 11 | |||||||||||
| 12 | 22 | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | |||||||||
| 13 | |||||||||||
| 14 | 149 | ▶ | sub _blessed { require Scalar::Util; goto &Scalar::Util::blessed } | ||||||||
|
Subroutine
_blessed: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | 22 | ▶ | use Role::Tiny qw( requires ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | |||||||||||
| 18 | |||||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | |||||||||||
| 24 | |||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | |||||||||||
| 28 | |||||||||||
| 29 | |||||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | |||||||||||
| 33 | |||||||||||
| 34 | |||||||||||
| 35 | |||||||||||
| 36 | |||||||||||
| 37 | |||||||||||
| 38 | |||||||||||
| 39 | |||||||||||
| 40 | |||||||||||
| 41 | 149 | ▶ | sub name { | ||||||||
|
Subroutine
name: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 42 | 149 | my $name = shift; | |||||||||
| 43 | 149 | ▶ | $name = _blessed($name) if _blessed($name); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 44 | 149 | $name =~ s/\APath::IsDev::Heuristic:/+ :/msx; | |||||||||
| 45 | 149 | return $name; | |||||||||
| 46 | } | ||||||||||
| 47 | |||||||||||
| 48 | |||||||||||
| 49 | |||||||||||
| 50 | |||||||||||
| 51 | |||||||||||
| 52 | |||||||||||
| 53 | |||||||||||
| 54 | |||||||||||
| 55 | |||||||||||
| 56 | 136 | ▶ | sub heuristic_type { | ||||||||
|
Subroutine
heuristic_type: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 57 | 136 | return 'positive heuristic'; | |||||||||
| 58 | } | ||||||||||
| 59 | |||||||||||
| 60 | |||||||||||
| 61 | |||||||||||
| 62 | |||||||||||
| 63 | |||||||||||
| 64 | |||||||||||
| 65 | |||||||||||
| 66 | |||||||||||
| 67 | |||||||||||
| 68 | |||||||||||
| 69 | |||||||||||
| 70 | |||||||||||
| 71 | |||||||||||
| 72 | |||||||||||
| 73 | |||||||||||
| 74 | |||||||||||
| 75 | |||||||||||
| 76 | |||||||||||
| 77 | |||||||||||
| 78 | |||||||||||
| 79 | |||||||||||
| 80 | |||||||||||
| 81 | 22 | requires 'matches'; | |||||||||
| 82 | |||||||||||
| 83 | 22 | 1; | |||||||||
| 84 | |||||||||||
| 85 | __END__ | ||||||||||