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