# file: MyConf.pm package MyConf; use strict; use vars qw( @ISA @EXPORT_OK @EXPORT %Conf ); require Exporter; @ISA = qw(Exporter); @EXPORT_OK = qw( %Conf ); @EXPORT = @EXPORT_OK; $Conf{'foo'} = 'bar'; $Conf{'this guy walks into a'} = 'bar'; # file: test.pl use strict; use MyConf; print "$Conf{'foo'}\n";
In reply to Re: Require Centralized Variables
by joealba
in thread Require Centralized Variables
by mhorner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |