| 1 | 3 | ▶ | use 5.008; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package Property::Lookup::Local; | ||||||||||
| 6 | 3 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 3 | $Property::Lookup::Local::VERSION = '1.101400'; | |||||||||
| 8 | } | ||||||||||
| 9 | # ABSTRACT: Package hash-based property lookup layer | ||||||||||
| 10 | 3 | ▶ | use parent 'Property::Lookup::Base'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 3 | our %opt; # so it can be overridden via local() | |||||||||
| 12 | |||||||||||
| 13 | 3 | ▶ | sub AUTOLOAD { | ||||||||
|
Subroutine
AUTOLOAD: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 3 | my $self = shift; | |||||||||
| 15 | 3 | (my $method = our $AUTOLOAD) =~ s/.*://; | |||||||||
| 16 | 3 | our %opt; | |||||||||
| 17 | 3 | $opt{$method}; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub get_config { | ||||||||
|
Subroutine
get_config: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 21 | 0 | our %opt; | |||||||||
| 22 | 0 | ▶ | wantarray ? %opt: \%opt; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 3 | 1; | |||||||||
| 26 | |||||||||||
| 27 | |||||||||||
| 28 | __END__ | ||||||||||