blib/lib/Tie/Select.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 96.1% 25 / 26 CC 1 SCAR 0.0
CC
1
Cov
95%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Tie::Select;
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 2 our $VERSION = 0.01;
7 2 $VERSION = eval $VERSION;
8  
9 2 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 our @ISA = qw/ Exporter /;
11 2 our @EXPORT = qw/ $SELECT /;
12  
13 2 ▶tie our $SELECT, __PACKAGE__
Branch: 1 branch
BranchTrueFalseTotal
tie our $SELECT, __PACKAGE__ or die "Can't tie \$SELECT" 2 0 2
14 or die q/Can't tie $SELECT/;
15  
16 2 ▶sub TIESCALAR { return bless [], $_[0] }
Subroutine TIESCALAR: called CC=1 SCAR=0.0
17 2 ▶sub FETCH { return select }
Subroutine FETCH: called CC=1 SCAR=0.0
18 6 ▶sub STORE { select $_[1] }
Subroutine STORE: called CC=1 SCAR=0.0
19  
20 2 1;
21  
22 __END__
↑ Summary