in reply to Configuration, without a Module?

Your 25 scripts:

my %config = do "config.pl" or die("can't recreate config file: $! $@");

config.pl:

do "martha.225" or die("can't recreate config file: $! $@");
— OR —

Your 25 scripts:

use AppConfig;

AppConfig.pm:

package AppConfig; our @ISA = 'Exporter'; use Exporter; our @EXPORT = '%config'; our %config = do "martha.225" or die("can't recreate config file: $! $@"); 1;

Update: $reply_text =~ s/@EXPORT_OK/@EXPORT/g;

Replies are listed 'Best First'.
Re^2: Configuration, without a Module?
by Spidy (Chaplain) on Mar 21, 2006 at 03:10 UTC
    Decided to use your first method, it looks like it will work perfectly. Thanks!

    Spidy