scandeps.pl - Scan file prerequisites
% scandeps.pl *.pm # Print PREREQ_PM section for *.pm % scandeps.pl -e 'STRING' # Scan an one-liner % scandeps.pl -B *.pm # Include core modules % scandeps.pl -V *.pm # Show autoload/shared/data files
scandeps.pl is a simple-minded utility that prints out the PREREQ_PM section needed by modules.
PREREQ_PM
If 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 ?.
S
?
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.
-B
CPAN.pm
CPANPLUS.pm
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.
X
-V
Scan STRING as a string containing perl code.
Compiles the code and inspects its %INC, in addition to static scanning.
%INC
Executes the code and inspects its %INC, in addition to static scanning.
Include core modules in the output and the recursive search list.
Verbose mode: Output all files found during the process; show dependencies between modules and availability.
Module::ScanDeps, CPANPLUS::Backend, PAR
Simon Cozens, for suggesting this script to be written.
Audrey Tang <autrijus@autrijus.org>
Copyright 2003, 2004, 2005 by Audrey Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Module::ScanDeps, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::ScanDeps
CPAN shell
perl -MCPAN -e shell install Module::ScanDeps
For more information on module installation, please visit the detailed CPAN module installation guide.