P5U::Command::Deps - p5u plugin to scan a file or directory for Perl dependencies
$ p5u deps lib/Foo/Bar.pm # RUNTIME Foo 1.000 constant 0 perl 5.010 strict 0 utf8 0 $ p5u deps --skipcore lib/Foo/Bar.pm # RUNTIME Foo 1.000
Given a list of filenames and/or directories, uses Perl::PrereqScanner to calculate a combined list of dependencies. If no filenames are given, then the current directory is assumed.
It uses file naming conventions to attempt to classify dependencies as "runtime", "test" and "build".
With the --skipcore option, will skip dependencies that are satisfied by Perl core. This requires at least one use VERSION line in the files being scanned.
--skipcore
use VERSION
Output is in the text format shown above, but with --format=mi will attempt to output Module::Install-style requirements. With --format=pretdsl will output data in a format suitable for RDF::TrineX::Parser::Pretdsl.
--format=mi
--format=pretdsl
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=P5U-Command-Deps.
P5U.
Perl::PrereqScanner, App::PrereqGrapher.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2012 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install P5U::Command::Deps, copy and paste the appropriate command in to your terminal.
cpanm
cpanm P5U::Command::Deps
CPAN shell
perl -MCPAN -e shell install P5U::Command::Deps
For more information on module installation, please visit the detailed CPAN module installation guide.