RSS | Module Info | Add a review of File-ShareDir
File-ShareDir
(1.00)
File::ShareDir gives a Perl programmer a way to install non-source code data files needed by modules. It installs the data files in a location where they are unique to the module, so that there is no danger of clobbering any other files on the system. Retrieving the files again takes one simple command, "dist_file", plus the name of the file, and does not require thinking about what directory the files actually are in.
This way data files don't clog up a home directory (like CPAN.pm does), go in somewhere operating-system dependent which will fail for some people, and don't need to be installed in the directory where the distribution's Perl scripts are (like Religion::Islam::Quran does).
I think that is a really great idea, especially for large files or large numbers of files.
However, in order to use this, one must use Module::Install as the install tool instead of ExtUtils::MakeMaker or Module::Build.
Ben Bullock - 2009-08-26T06:56:11 (permalink)
2 out of 3 found this review helpful.
Was this review helpful to you?
Yes
No
File-ShareDir
(0.05)
THe only reason it's not all 5s is that I just haven't used it yet. But this module, coupled with M::I::Share is exactly what I want to accomplish for splitting a CPAN dist into it's dist-static parts and local user overridable parts in terms of static css/js files, templates and other non-image files.
Awesome.
Christopher H. Laco - 2007-04-19T12:41:56 (permalink)
3 out of 4 found this review helpful.
Was this review helpful to you?
Yes
No

