Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perigrin/archlib
Add tar.* to @INC to load archived modules
https://github.com/perigrin/archlib
Last synced: about 1 month ago
JSON representation
Add tar.* to @INC to load archived modules
- Host: GitHub
- URL: https://github.com/perigrin/archlib
- Owner: perigrin
- Created: 2012-02-28T09:54:31.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-02-29T05:19:09.000Z (almost 13 years ago)
- Last Synced: 2024-05-01T22:51:19.185Z (9 months ago)
- Language: Perl
- Homepage:
- Size: 98.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
NAME
archlib - Add tar archive to @INC pathSYNOPSIS
use archlib 'path/to/archive1.tar.gz';
use archlib 'path/to/archive2.tar.bz2';
use archlib 'path/to/archive3.zip';use Module::In::Archive1;
use Module::In::Archive2;
use Module::In::Archive3;...
ARCHIVE SPECIFICATIONS
The root of the archive is the root of the search path, ie:archive1.tar.bz2:
TopLevel.pm
My/Module.pm
DeeperPath/To/Module.pmYou must NOT put everything into a 'lib' directory.
UNDER THE HOOD
This module will unshift a subroutine into @INC. This routine will
iterate all archives that have been added looking for each module
loaded. If the module is not present in any archive other @INC entries
will be checked. The module maintains a package variable containing the
list of archives.ARCHIVE MANAGEMENT
TAR.*
Will try the following in order, you may also specify your own list in
the $ENV{ARCHLIB_TAR_ORDER} environment variable.Archive::Peek::Libarchive
Archive::Peek::External
Archive::TarZIP
Uses Archive::Zip if it is installed, otherwise it will ask you to
install it in an error message.AUTHORS
Chad Granum [email protected]CONTRIBUTORS
Chris Prather [email protected]COPYRIGHT
Copyright (C) 2012 Chad Granumarchlib is free software; Standard perl licence.
archlib is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.