| 1 | # | ||
| 2 | # | ||
| 3 | # Copyright (C) 2006-2010 Andrew Speer <andrew@webdyne.org>. | ||
| 4 | # All rights reserved. | ||
| 5 | # | ||
| 6 | # This file is part of WebDyne::Chain. | ||
| 7 | # | ||
| 8 | # WebDyne::Session is free software; you can redistribute it and/or modify | ||
| 9 | # it under the terms of the GNU General Public License as published by | ||
| 10 | # the Free Software Foundation; either version 2 of the License, or | ||
| 11 | # (at your option) any later version. | ||
| 12 | # | ||
| 13 | # This program is distributed in the hope that it will be useful, | ||
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | # GNU General Public License for more details. | ||
| 17 | # | ||
| 18 | # You should have received a copy of the GNU General Public License | ||
| 19 | # along with this program; if not, write to the Free Software | ||
| 20 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
| 21 | # | ||
| 22 | # | ||
| 23 | |||
| 24 | |||
| 25 | # Constants | ||
| 26 | # | ||
| 27 | package WebDyne::Chain::Constant; | ||
| 28 | 1 | ▶ | use strict qw(vars); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 29 | 1 | ▶ | use vars qw($VERSION @ISA %EXPORT_TAGS @EXPORT_OK @EXPORT %Constant); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | 1 | ▶ | no warnings qw(uninitialized); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | 1 | local $^W=0; | |
| 32 | |||
| 33 | |||
| 34 | # Version information. Must be all on one line | ||
| 35 | # | ||
| 36 | 1 | $VERSION='1.003'; | |
| 37 | |||
| 38 | |||
| 39 | # Constants are empty, but havin this file allows for import of DEBUG and othe | ||
| 40 | # vars from /etc/constant; | ||
| 41 | # | ||
| 42 | 1 | %Constant=(); | |
| 43 | |||
| 44 | |||
| 45 | # Export constants to namespace, place in export tags | ||
| 46 | # | ||
| 47 | 1 | require Exporter; | |
| 48 | 1 | require WebDyne::Constant; | |
| 49 | 1 | @ISA=qw(Exporter WebDyne::Constant); | |
| 50 | 1 | +__PACKAGE__->local_constant_load(\%Constant); | |
| 51 | 0 | foreach (keys %Constant) { ${$_}=$Constant{$_} } | |
| 52 | 0 | @EXPORT=map { '$'.$_ } keys %Constant; | |
| 53 | 1 | @EXPORT_OK=@EXPORT; | |
| 54 | 1 | %EXPORT_TAGS=(all => [@EXPORT_OK]); | |
| 55 | 1 | $_=\%Constant; | |