| 1 | package Getopt::Yath::Option::Scalar; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 1 | our $VERSION = '2.000007'; | |||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use parent 'Getopt::Yath::Option'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use Getopt::Yath::HashBase; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | sub allows_default { 1 } | ||||||||
|
Subroutine
allows_default: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 11 | 16 | ▶ | sub allows_arg { 1 } | ||||||||
|
Subroutine
allows_arg: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 12 | 15 | ▶ | sub requires_arg { 1 } | ||||||||
|
Subroutine
requires_arg: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 13 | 0 | ▶ | sub allows_autofill { 0 } | ||||||||
|
Subroutine
allows_autofill: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 14 | 4 | ▶ | sub requires_autofill { 0 } | ||||||||
|
Subroutine
requires_autofill: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | |||||||||||
| 16 | 164 | ▶ | sub is_populated { defined(${$_[1]}) ? 1 : 0 } | ||||||||
|
Subroutine
is_populated: called CC=2 SCAR=6.9
Pod
undocumented
Branch: 1 branch
| |||||||||||
| 17 | |||||||||||
| 18 | 306 | ▶ | sub add_value { ${$_[1]} = $_[2] } | ||||||||
|
Subroutine
add_value: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 19 | |||||||||||
| 20 | 92 | ▶ | sub can_set_env { 1 } | ||||||||
|
Subroutine
can_set_env: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 21 | |||||||||||
| 22 | sub get_env_value { | ||||||||||
| 23 | 9 | ▶ | my $opt = shift; | ||||||||
|
Subroutine
get_env_value: called CC=3 SCAR=14.2
Pod
undocumented
| |||||||||||
| 24 | 9 | my ($var, $ref) = @_; | |||||||||
| 25 | |||||||||||
| 26 | 9 | ▶ | return $$ref unless $var =~ m/^!/; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 27 | 0 | ▶ | return $ref ? 0 : 1; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | |||||||||||
| 31 | 1 | 1; | |||||||||
| 32 | |||||||||||
| 33 | __END__ | ||||||||||