| 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: # |