1SCANDEPS(1)           User Contributed Perl Documentation          SCANDEPS(1)
2
3
4

NAME

6       scandeps.pl - Scan file prerequisites
7

SYNOPSIS

9           % scandeps.pl *.pm          # Print PREREQ_PM section for *.pm
10           % scandeps.pl -e 'STRING'   # Scan an one-liner
11           % scandeps.pl -B *.pm       # Include core modules
12           % scandeps.pl -V *.pm       # Show autoload/shared/data files
13           % scandeps.pl -R *.pm       # Don't recurse
14           % scandeps.pl -C CACHEFILE  # use CACHEFILE to cache dependencies
15

DESCRIPTION

17       scandeps.pl is a simple-minded utility that prints out the "PREREQ_PM"
18       section needed by modules.
19
20       If the option "-T" is specified and you have CPANPLUS installed,
21       modules that are part of an earlier module's distribution with be
22       denoted with "S"; modules without a distribution name on CPAN are
23       marked with "?".
24
25       Also, if the "-B" option is specified, module belongs to a perl
26       distribution on CPAN (and thus uninstallable by "CPAN.pm" or
27       "CPANPLUS.pm") are marked with "C".
28
29       Finally, modules that has loadable shared object files (usually needing
30       a compiler to install) are marked with "X"; with the "-V" flag, those
31       files (and all other files found) will be listed before the main
32       output. Additionally, all module files that the scanned code depends on
33       but were not found (and thus not scanned recursively) are listed. These
34       may include genuinely missing modules or false positives. That means,
35       modules your code does not depend on (on this particular platform) but
36       that were picked up by the heuristic anyway.
37

OPTIONS

39       -e, --eval=STRING
40           Scan STRING as a string containing perl code.
41
42       -c, --compile
43           Compiles the code and inspects its %INC, in addition to static
44           scanning.
45
46       -x, --execute
47           Executes the code and inspects its %INC, in addition to static
48           scanning.  You may use --xargs to specify @ARGV when executing the
49           code.
50
51       --xargs=STRING
52           If -x is given, splits the "STRING" using the function "shellwords"
53           from Text::ParseWords and passes the result as @ARGV when executing
54           the code.
55
56       -B, --bundle
57           Include core modules in the output and the recursive search list.
58
59       -R, --no-recurse
60           Only show dependencies found in the files listed and do not
61           recurse.
62
63       -V, --verbose
64           Verbose mode: Output all files found during the process; show
65           dependencies between modules and availability.
66
67           Additionally, warns of any missing dependencies. If you find
68           missing dependencies that aren't really dependencies, you have
69           probably found false positives.
70
71       -C, --cachedeps=CACHEFILE
72           Use CACHEFILE to speed up the scanning process by caching
73           dependencies.  Creates CACHEFILE if it does not exist yet.
74
75       -T, --modtree
76           Retrieves module information from CPAN if you have CPANPLUS
77           installed.
78

SEE ALSO

80       Module::ScanDeps, CPANPLUS::Backend, PAR
81

ACKNOWLEDGMENTS

83       Simon Cozens, for suggesting this script to be written.
84

AUTHORS

86       Audrey Tang <autrijus@autrijus.org>
87
89       Copyright 2003, 2004, 2005, 2006 by Audrey Tang
90       <autrijus@autrijus.org>.
91
92       This program is free software; you can redistribute it and/or modify it
93       under the same terms as Perl itself.
94
95       See <http://www.perl.com/perl/misc/Artistic.html>
96
97
98
99perl v5.32.1                      2021-04-22                       SCANDEPS(1)
Impressum