|File Search||Catalog||Content Search|
The problem is, that the concept of having a distribution or module specific share directory becomes a little hazy when you're loading everything from a single file. PAR uses an @INC hook to intercept any attempt to load a module. File::ShareDir uses the directory structure that is typically found in the directories that are listed in @INC for storing the shared data. In a PAR enviroment, this is not necessarily possible.
When you call one of the functions that this module provides, it will take care to search in any of the currently loaded .par files before scanning @INC. This is the same order of preference you get for loading modules when PAR is in effect. If the path or file you are asking for is found in one of the loaded .par files, that containing .par file is extracted and the path returned will point to the extracted copy on disk.
Depending on how you're using PAR, the files that are extracted this way are either cleaned up after program termination or cached for further executions. Either way, you're safe if you use the shared data as read-only data. If you write to it, your changes may be lost after the program ends.
File::ShareDir::PUserpContributed Perl DocumFile::ShareDir::PAR(3pm) NAME File::ShareDir::PAR - File::ShareDir with PAR support SYNOPSIS use File::SharedDir::PAR ':ALL'; # exact same interface as the normal File::ShareDir: # Where are distribution-level shared data files kept $dir = dist_dir('File-ShareDir'); # Where are module-level shared more»
libfile-sharedir-par-perl (0.05-1) unstable; urgency=low [ Antonio Radici ] * bump build-dependency on libpar-perl to 0.989, _first_member_matching is not defined on previous versions * New upstream release * Adding me to the Uploaders [ Damyan Ivanov ] * New upstream release * add myself to Uploaders * Standards-Version: 3.8.1 (no changes needed) -- Damyan Ivanov <dmn@deb more»
Revision history for Perl extension File::ShareDir::PAR 0.05 Fri 20 Mar 2009 - Attempt band-aid fix for strange win32 test problem. 0.04 Mon 2 Mar 2009 - Fix issues accessing the dist_dir of PAR'd exes. 0.03 Sat 15 Nov 2008 - Fix issue on Win32 wrt path separators. 0.02 Wed 15 Oct 2008 - Fix 03 tests with par: previously, got spurious fails from cpan testers because @INC was clean more»
Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196 Ups more»