NAME
perlwhich - locate a Perl module
USAGE
perlwhich [options] module...
OPTIONS
- -a
-
Print all matching path names.
- -d
-
Do not add a .pm suffix, look for a matching directory.
- -v
-
Print out the version of each module after its name, if that information can be retrieved from the module file.
- -h
-
Print out this usage information.
DESCRIPTION
The perlwhich command is the equivalent of 'which' for Perl modules. It prints the full path to each specified Perl module, if it is found in @INC. A module may be specified as either a package name (Some::Module) or a file name (Some/Module.pm). By default, the first path name found for each argument is printed.
RESULT CODE
This command returns 0 if a matching file or directory is found, 1 if not.