| 1 | package Path::Map::Match; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 15 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 7 | 15 | my ($class, %attributes) = @_; | |
| 8 | 15 | return bless \%attributes, $class; | |
| 9 | } | ||
| 10 | |||
| 11 | 24 | ▶ | sub mapper { $_[0]->{mapper} } |
|
Subroutine
mapper: called CC=1 SCAR=0.0
Pod
documented
| |||
| 12 | 16 | ▶ | sub values { $_[0]->{values} } |
|
Subroutine
values: called CC=1 SCAR=0.0
Pod
documented
| |||
| 13 | 12 | ▶ | sub handler { $_[0]->mapper->_target } |
|
Subroutine
handler: called CC=1 SCAR=0.0
Pod
documented
| |||
| 14 | |||
| 15 | 12 | ▶ | sub variables { |
|
Subroutine
variables: called CC=1 SCAR=0.0
Pod
documented
| |||
| 16 | 12 | my $self = shift; | |
| 17 | |||
| 18 | 12 | my %vars; | |
| 19 | 12 | @vars{ @{ $self->mapper->_variables } } = @{ $self->values }; | |
| 20 | |||
| 21 | 12 | return \%vars; | |
| 22 | } | ||
| 23 | |||
| 24 | 2 | 1; | |
| 25 | |||
| 26 | __END__ | ||