CGI/Builder/Const.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict ;
2  
3 # This file uses the "Perlish" coding style
4 # please read http://perl.4pro.net/perlish_coding_style.html
5  
6 ; package CGI::Builder::Const
7  
8 ; our @phase
9  
10 ; BEGIN
11 { @phase = qw | CB_INIT
12 GET_PAGE
13 PRE_PROCESS
14 SWITCH_HANDLER
15 PRE_PAGE
16 PAGE_HANDLER
17 FIXUP
18 RESPONSE
19 REDIR
20 CLEANUP
21 |
22 ; my %h
23 ; @h{@phase} = (0 .. $#phase)
24 ; while ( my ($k, $v) = each %h )
25 { no strict 'refs'
26 ; *$k = sub () { $v }
27 }
28 }
29  
30 ; require Exporter
31 ; our @ISA = 'Exporter'
32 ; our @EXPORT_OK = ( @phase )
33 ; our %EXPORT_TAGS = ( all => \@phase
34 , phases => \@phase
35 )
36
37 ; 1
38  
39 __END__