| 1 | # $Id$ | ||
| 2 | # $Source$ | ||
| 3 | # $Author$ | ||
| 4 | # $HeadURL$ | ||
| 5 | # $Revision$ | ||
| 6 | # $Date$ | ||
| 7 | package Config::PlConfig::Constants; | ||
| 8 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 2 | ▶ | use 5.006001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 2 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 2 | ▶ | use version; our $VERSION = qv('0.1_02'); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | { | ||
| 14 | 2 | my %CONSTANTS = ( | |
| 15 | DEFAULT_HOST => 'local', | ||
| 16 | CONF_DIRNAME => 'plconf', | ||
| 17 | DOMAINFILE_SUFFIX => 'plconf', | ||
| 18 | ); | ||
| 19 | |||
| 20 | 7 | ▶ | sub get { |
|
Subroutine
get: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 21 | 7 | my ($class, $key) = @_; | |
| 22 | |||
| 23 | 7 | return $CONSTANTS{$key} | |
| 24 | } | ||
| 25 | } | ||
| 26 | |||
| 27 | # Module implementation here | ||
| 28 | |||
| 29 | |||
| 30 | 2 | 1; # Magic true value required at end of module | |
| 31 | __END__ | ||