Configuration files and ExtUtils::MakeMaker

2009-04-28 Thread Bill Moseley
I have a package that includes a few scripts that I want installed. These scripts need to be able to find configuration files at run time and the config files are part of the distribution package. What's the best way to setup my package and Makefile.PL to place the config files in a

Re: Configuration files and ExtUtils::MakeMaker

2009-04-28 Thread Hans Dieter Pearcey
On Tue, Apr 28, 2009 at 03:52:18PM -0700, Bill Moseley wrote: What's the best way to setup my package and Makefile.PL to place the config files in a package-specific directory? And then what's the best way in the script to find the installed location of these files when the script runs?

Re: Configuration files and ExtUtils::MakeMaker

2009-04-28 Thread Bill Ward
For this kind of thing I usually copy the Config.pm generated by Perl or the CPAN::Config module -- create a MyModule::Config file that defines a hash %MyModule::Config with all my stuff in it. The script can then just use MyModule::Config and off you go. On Tue, Apr 28, 2009 at 3:52 PM, Bill

Re: Configuration files and ExtUtils::MakeMaker

2009-04-28 Thread Bill Moseley
On Tue, Apr 28, 2009 at 04:16:44PM -0700, Bill Ward wrote: For this kind of thing I usually copy the Config.pm generated by Perl or the CPAN::Config module -- create a MyModule::Config file that defines a hash %MyModule::Config with all my stuff in it. The script can then just use

Re: Configuration files and ExtUtils::MakeMaker

2009-04-28 Thread Ben Morrow
Quoth mose...@hank.org (Bill Moseley): On Tue, Apr 28, 2009 at 06:56:04PM -0400, Hans Dieter Pearcey wrote: On Tue, Apr 28, 2009 at 03:52:18PM -0700, Bill Moseley wrote: What's the best way to setup my package and Makefile.PL to place the config files in a package-specific directory? And