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 then what's the
> > best way in the script to find the installed location of these files
> > when the script runs?
> 
> Install them into blib/arch/auto/share/dist/Your-Dist-Name, assuming that ends
> up in the right place when using EUMM.

Ok, the package is currently using EUMM but I'm not clear how to use
MM to install the config files.  Is it better to use "install_share"
with Module::Install?


> Then, use File::ShareDir::dist_dir('Your-Dist-Name') to find that directory
> again.
> 
> Unless by 'package' you meant 'module', in which case look at how
> File::ShareDir finds those.

Well, it's a package that installs a module, but also includes
scripts that will use the modules -- like how libwww-perl installs a
set of modules and also the lwp-request utility script.

-- 
Bill Moseley.
mose...@hank.org
Sent from my iMutt

Reply via email to