Devel-SearchINC
view release on metacpan or search on metacpan
You can have multiple development directories. Just list them when using
this module:
use Devel::SearchINC qw(/my/first/dir my/second/dir);
or
perl -MDevel::SearchINC=/my/first/dir,/my/second/dir
You can also use semicolons or colons instead of commas as delimiters
for directories.
"perlrun" details the syntax for specifying multiple arguments for
modules brought in with the "-M" switch.
SPECIAL OPTIONS
In addition to development directories, there are special options that
can be passed to this module:
"-debug"
This turns on debugging; see below.
"-clear"
This option clears all paths that were previously set. This is
useful when you have a "PERL5OPT" environment variable but want to
use this module from within your code as well and want to override
the environment setting. For example:
export PERL5OPT=-MDevel::SearchINC=/path/to/dev
then:
#!/usr/bin/env perl
use warnings;
use strict;
use Devel::SearchINC qw(-clear /path/to/other/dir);
...
DEBUGGING THIS MODULE
By using "-debug" as one of the development directories, you can turn on
debugging. Note that despite the leading colon, this has nothing to do
with "Exporter" semantics. With debugging activated, this module will
print detailed information while trying to find the requested file.
For example
use Devel::SearchINC qw(/my/first/dir my/second/dir -debug);
or
perl -MDevel::SearchINC=/my/first/dir,-debug,/my/second/dir
The "-debug" option can be specified anywhere in the list of development
directories.
INSTALLATION
See perlmodinstall for information and options on installing Perl
modules.
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests through the web interface at
<http://rt.cpan.org/Public/Dist/Display.html?Name=Devel-SearchINC>.
AVAILABILITY
The latest version of this module is available from the Comprehensive
Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a
CPAN site near you, or see
<http://search.cpan.org/dist/Devel-SearchINC/>.
The development version lives at
<http://github.com/hanekomu/Devel-SearchINC.git> and may be cloned from
<git://github.com/hanekomu/Devel-SearchINC.git>. Instead of sending
patches, please fork this project using the standard git and github
infrastructure.
AUTHOR
Marcel Gruenauer <marcel@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2004 by Marcel Gruenauer.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
( run in 1.227 second using v1.01-cache-2.11-cpan-5a3173703d6 )