1SCANDEPS(1) User Contributed Perl Documentation SCANDEPS(1)
2
3
4
6 scandeps.pl - Scan file prerequisites
7
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
17 scandeps.pl is a simple-minded utility that prints out the "PREREQ_PM"
18 section needed by modules.
19
20 If you have CPANPLUS installed, modules that are part of an earlier
21 module's distribution with be denoted with "S"; modules without a
22 distribution name on CPAN are marked with "?".
23
24 Also, if the "-B" option is specified, module belongs to a perl
25 distribution on CPAN (and thus uninstallable by "CPAN.pm" or
26 "CPANPLUS.pm") are marked with "C".
27
28 Finally, modules that has loadable shared object files (usually needing
29 a compiler to install) are marked with "X"; with the "-V" flag, those
30 files (and all other files found) will be listed before the main
31 output. Additionally, all module files that the scanned code depends on
32 but were not found (and thus not scanned recursively) are listed. These
33 may include genuinely missing modules or false positives. That means,
34 modules your code does not depend on (on this particular platform) but
35 that were picked up by the heuristic anyway.
36
38 -e STRING
39 Scan STRING as a string containing perl code.
40
41 -c Compiles the code and inspects its %INC, in addition to static
42 scanning.
43
44 -x Executes the code and inspects its %INC, in addition to static
45 scanning.
46
47 -B Include core modules in the output and the recursive search list.
48
49 -R Only show dependencies found in the files listed and do not
50 recurse.
51
52 -V Verbose mode: Output all files found during the process; show
53 dependencies between modules and availability.
54
55 Additionally, warns of any missing dependencies. If you find
56 missing dependencies that aren't really dependencies, you have
57 probably found false positives.
58
59 -C CACHEFILE
60 Use CACHEFILE to speed up the scanning process by caching
61 dependencies. Creates CACHEFILE if it does not exist yet.
62
64 Module::ScanDeps, CPANPLUS::Backend, PAR
65
67 Simon Cozens, for suggesting this script to be written.
68
70 Audrey Tang <autrijus@autrijus.org>
71
73 Copyright 2003, 2004, 2005, 2006 by Audrey Tang
74 <autrijus@autrijus.org>.
75
76 This program is free software; you can redistribute it and/or modify it
77 under the same terms as Perl itself.
78
79 See <http://www.perl.com/perl/misc/Artistic.html>
80
81
82
83perl v5.12.1 2010-04-10 SCANDEPS(1)