| 1 | 2 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 2 | 2 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | |||||||||||||||||||||||||||||
| 4 | package Pad::Tie::LP; | ||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 2 | ▶ | use base 'Lexical::Persistence'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | sub parse_variable { | ||||||||||||||||||||||||||||
| 9 | 11 | ▶ | my ($self, $var) = @_; | ||||||||||||||||||||||||||
|
Subroutine
parse_variable: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | 11 | my ($sigil, $context, $member) = $self->SUPER::parse_variable($var); | |||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 11 | ▶ | if ($context eq '_' and not exists $self->{context}{_}{$member}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$context eq "_" and not exists $self->{"context"}{"_"}{$member}
MC/DC50%1/2
$context eq "_" and not exists $self->{"context"}{"_"}{$member}
$context eq "_"
not exists $self->{"context"}{"_"}{$member}
Truth table66%2/3
A and not(B)
A= $context eq "_"B= not exists $self->{"context"}{"_"}{$member}
| |||||||||||||||||||||||||||||
| 14 | 1 | return; # don't auto-vivify _ | |||||||||||||||||||||||||||
| 15 | } | ||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | 10 | return ($sigil, $context, $member); | |||||||||||||||||||||||||||
| 18 | } | ||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | 2 | 1; | |||||||||||||||||||||||||||