blib/lib/App/hopen/MYhopen.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 25 CC 2 SCAR 12.0
CC
2
Cov
0%
import
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.3
1 # App::hopen::MYhopen - module used by MY.hopen.pl files to perform
2 # compile-time processing (e.g., setting the phase)
3 package App::hopen::MYhopen;
4 use Data::Hopen;
5 use strict; use warnings;
6 use Data::Hopen::Base;
7  
8 our $VERSION = '0.000013'; # TRIAL
9  
10 # Docs {{{1
11  
12 =head1 NAME
13  
14 App::hopen::MYhopen - compile-time processing by MY.hopen.pl files
15  
16 =head1 SYNOPSIS
17  
18 This module is used by MY.hopen.pl files to perform compile-time processing,
19 such as setting the phase.
20  
21 =cut
22  
23 # }}}1
24  
25 =head1 VARIABLES
26  
27 =head2 $App::hopen::MYhopen::IsMYH
28  
29 Must be set truthy before this module's import() function is called, or
30 import() will croak. A very rudimentary access control.
31  
32 =cut
33  
34 our $IsMYH;
35  
36 =head1 FUNCTIONS
37  
38 =head2 import
39  
40 Set things up!
41  
42 =cut
43  
44 sub import { # {{{1
45 my $target = caller;
46 croak "Cannot load App::hopen::MYhopen from a file that is not a " .
47 "MY.hopen.pl file" unless $App::hopen::MYhopen::IsMYH;
48 } #import() # }}}1
49  
50 1;
51 __END__
52 # vi: set fdm=marker: #