in reply to Re^4: Config file recommendations?
in thread Config file recommendations?
Main file:
use strict; use warnings; use lib '.'; use MyConfig; use Data::Dumper; print Dumper \%config;
MyConfig.pm:
package MyConfig; use strict; use warnings; use Exporter; our @ISA = qw(Exporter); our %config; our @EXPORT = qw(%config); %config = ( foo => 'bar', baz => 'bat', ); 1;
And the output:
$VAR1 = { 'baz' => 'bat', 'foo' => 'bar' };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Config file recommendations?
by Spidy (Chaplain) on Mar 19, 2008 at 23:18 UTC |