cdybedahl has asked for the wisdom of the Perl Monks concerning the following question:
Hello there.
I'm maintaining a Perl module. To work properly, it needs a couple of data files (in YAML format). Currently, they get installed by ExtUtils::MakeMaker in a disgustingly hacky way, and later located by the Perl code by looking up a starting point in Config.pm. This works, but it is ugly. It's also somewhat problematic when it comes to some Perl installation variants (particularly, for me right now, Debian's).
So I've been trying to find out what's the right and proper way of including data files with Perl modules, on the assumption that I cannot possibly be the first person ever to need that. And I can't find anything about this. Not in the Perl documentation, not in the MakeMaker documentation, not in the Module::Install documentation, not with Google, not... just not.
Does anyone here know anything about this? Any hints on other modules that have data files? Documentation I've missed?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Data files in Perl module distributions?
by Anonymous Monk on Apr 13, 2012 at 12:47 UTC | |
Re: Data files in Perl module distributions?
by moritz (Cardinal) on Apr 13, 2012 at 12:48 UTC | |
Re: Data files in Perl module distributions?
by SBECK (Chaplain) on Apr 13, 2012 at 14:47 UTC | |
Re: Data files in Perl module distributions?
by zengargoyle (Deacon) on Apr 14, 2012 at 06:14 UTC | |
by Anonymous Monk on Apr 14, 2012 at 06:28 UTC | |
by zengargoyle (Deacon) on Apr 14, 2012 at 14:20 UTC | |
by Anonymous Monk on Apr 30, 2012 at 10:43 UTC | |
by Anonymous Monk on Apr 30, 2012 at 11:50 UTC |