SCANDEPS(1p) User Contributed Perl Documentation SCANDEPS(1p)
scandeps - Scan file prerequisites
% scandeps *.pm # Print PREREQ_PM section for *.pm
% scandeps -e 'STRING' # Scan an one-liner
% scandeps -B *.pm # Include core modules
% scandeps -V *.pm # Show autoload/shared/data files
% scandeps -R *.pm # Don't recurse
% scandeps -C CACHEFILE # use CACHEFILE to cache dependencies
scandeps is a simple-minded utility that prints out the "PREREQ_PM"
section needed by modules.
If the option "-T" is specified and you have CPANPLUS installed,
modules that are part of an earlier module's distribution with be
denoted with "S"; modules without a distribution name on CPAN are
marked with "?".
Also, if the "-B" option is specified, module belongs to a perl
distribution on CPAN (and thus uninstallable by "CPAN.pm" or
"CPANPLUS.pm") are marked with "C".
Finally, modules that has loadable shared object files (usually needing
a compiler to install) are marked with "X"; with the "-V" flag, those
files (and all other files found) will be listed before the main
output. Additionally, all module files that the scanned code depends on
but were not found (and thus not scanned recursively) are listed. These
may include genuinely missing modules or false positives. That means,
modules your code does not depend on (on this particular platform) but
that were picked up by the heuristic anyway.
Scan STRING as a string containing perl code.
Compiles the code and inspects its %INC, in addition to static
Executes the code and inspects its %INC, in addition to static
scanning. You may use --xargs to specify @ARGV when executing the
If -x is given, splits the "STRING" using the function "shellwords"
from Text::ParseWords and passes the result as @ARGV when executing
Include core modules in the output and the recursive search list.
Only show dependencies found in the files listed and do not
Verbose mode: Output all files found during the process; show
dependencies between modules and availability.
Additionally, warns of any missing dependencies. If you find
missing dependencies that aren't really dependencies, you have
probably found false positives.
Use CACHEFILE to speed up the scanning process by caching
dependencies. Creates CACHEFILE if it does not exist yet.
Retrieves module information from CPAN if you have CPANPLUS
Module::ScanDeps, CPANPLUS::Backend, PAR
Simon Cozens, for suggesting this script to be written.
Audrey Tang <email@example.com>
Copyright 2003, 2004, 2005, 2006 by Audrey Tang
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
perl v5.26.1 2017-09-29 SCANDEPS(1p)
Man Pages Copyright Respective Owners. Site Copyright (C) 1994 - 2022
All Rights Reserved.