| 1 | 1 | ▶ | use strict; use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | package Memoize::AnyDBM_File; | ||||||||||||||||||||||||||||
| 4 | 1 | our $VERSION = '1.17'; | |||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 1 | ▶ | our @ISA = qw(DB_File GDBM_File Memoize::NDBM_File SDBM_File ODBM_File) unless @ISA; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 1 | for my $mod (@ISA) { | |||||||||||||||||||||||||||
| 9 | 4 | ▶ | if (eval "require $mod") { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 10 | $mod = 'NDBM_File' | ||||||||||||||||||||||||||||
| 11 | if $mod eq 'Memoize::NDBM_File' | ||||||||||||||||||||||||||||
| 12 | 0 | ▶ | and eval { NDBM_File->VERSION( '1.16' ) }; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$mod eq "Memoize::NDBM_File" and eval {
do {
"NDBM_File"->VERSION("1.16")
}
}
MC/DC0%0/2
$mod eq "Memoize::NDBM_File" and eval {
do {
"NDBM_File"->VERSION("1.16")
}
}
$mod eq "Memoize::NDBM_File"
eval {
do {
"NDBM_File"->VERSION("1.16")
}
}
Truth table33%1/3
A and B
A= $mod eq "Memoize::NDBM_File"B= eval {
do {
"NDBM_File"->VERSION("1.16")
}
}
| |||||||||||||||||||||||||||||
| 13 | 1 | ▶ | print STDERR "AnyDBM_File => Selected $mod.\n" if our $Verbose; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 14 | 1 | @ISA = $mod; | |||||||||||||||||||||||||||
| 15 | 1 | return 1; | |||||||||||||||||||||||||||
| 16 | } | ||||||||||||||||||||||||||||
| 17 | } | ||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | 0 | die "No DBM package was successfully found or installed"; | |||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | __END__ | ||||||||||||||||||||||||||||