| 1 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 1 | ▶ | use warnings FATAL => 'all'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | package MarpaX::ESLIF::Logger::Level; | ||||||||||
| 5 | |||||||||||
| 6 | # ABSTRACT: ESLIF Logger levels | ||||||||||
| 7 | |||||||||||
| 8 | 1 | our $AUTHORITY = 'cpan:JDDPAUSE'; # AUTHORITY | |||||||||
| 9 | |||||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | use Carp qw/croak/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | 1 | our $VERSION = '6.0.35.1'; # VERSION | |||||||||
| 14 | |||||||||||
| 15 | # This section should be replaced on-the-fly at build time | ||||||||||
| 16 | |||||||||||
| 17 | 0 | ▶ | sub AUTOLOAD { | ||||||||
|
Subroutine
AUTOLOAD: not called CC=4 SCAR=26.8
| |||||||||||
| 18 | # This AUTOLOAD is used to 'autoload' constants from the constant() | ||||||||||
| 19 | # XS function. If a constant is not found then control is passed | ||||||||||
| 20 | # to the AUTOLOAD in AutoLoader. | ||||||||||
| 21 | |||||||||||
| 22 | 0 | my $constname; | |||||||||
| 23 | 0 | our $AUTOLOAD; | |||||||||
| 24 | 0 | ($constname = $AUTOLOAD) =~ s/.*:://; | |||||||||
| 25 | 0 | ▶ | croak "&MarpaX::ESLIF::Logger::Level::constant not defined" if $constname eq 'constant'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 0 | my ($error, $val) = constant($constname); | |||||||||
| 27 | 0 | ▶ | if ($error) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | 0 | ▶ | if ($error =~ /is not a valid/) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | 0 | $AutoLoader::AUTOLOAD = $AUTOLOAD; | |||||||||
| 30 | 0 | goto &AutoLoader::AUTOLOAD; | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | croak $error; | |||||||||
| 33 | } | ||||||||||
| 34 | } | ||||||||||
| 35 | { | ||||||||||
| 36 | 0 | ▶ | no strict 'refs'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.2
| |||||||||||
| 37 | # Fixed between 5.005_53 and 5.005_61 | ||||||||||
| 38 | #XXX if ($] >= 5.00561) { | ||||||||||
| 39 | #XXX *$AUTOLOAD = sub () { $val }; | ||||||||||
| 40 | #XXX } | ||||||||||
| 41 | #XXX else { | ||||||||||
| 42 | 0 | ▶ | *$AUTOLOAD = sub { $val }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 43 | #XXX } | ||||||||||
| 44 | } | ||||||||||
| 45 | 0 | goto &$AUTOLOAD; | |||||||||
| 46 | } | ||||||||||
| 47 | |||||||||||
| 48 | |||||||||||
| 49 | |||||||||||
| 50 | |||||||||||
| 51 | 1 | 1; | |||||||||
| 52 | |||||||||||
| 53 | __END__ | ||||||||||