Re: Where to store module-specific read-only data?
Tim Landscheidt <[email protected]> Wed, 30 Dec 2009 04:03:15 +0000
| Newsgroups | gmane.comp.lang.perl.modules.module-build |
|---|---|
| Organization | <URI:http://www.tim-landscheidt.de/> |
| Message-ID | <[email protected]> |
"Christopher J. Madsen" <[email protected]> wrote: >> Where do CPAN modules usually store read-only data? Does >> someone know of a module that I could use for reference? >> Also I'm interested in modules using Module::Build with such >> a generation/transformation step in its Build.PL. > You're looking for File::ShareDir and the share_dir parameter, which was > added in the just-released Module::Build 0.36. As Module::Build is a core module, it is quite a pain to up- date in my distribution. I stopped after building packages for ExtUtils::CBuilder and ExtUtils::ParseXS when a require- ment for ExtUtils::Manifest 1.54 (with 1.51 already install- ed) would have meant a rebuild of ExtUtils::MakeMaker. There's just too much stuff that could break silently along the way. Therefore, I'll probably look into using File::ShareDir without the "cleanness" of the share_dir parameter, espe- cially since I'll have to implement the database generation anyhow. Tim