Devel::Dependencies - Perl extension for examining dependencies on modules
perl -MDevel::Dependencies <perl_file> perl -MDevel::Dependencies=<opts> <perl_file>
This module lists all the modules loaded by a program or a module at compilation time.
More accurately, Devel::Dependencies uses a BEGIN and a CHECK block to find the changes in %INC.
BEGIN
CHECK
Devel::Dependencies accepts any combination of the following options. For more information on passing options from the command line, see perlrun.
Display the path to the file the module was loaded from.
Display the distance of each module, i.e. the posotion of the path in @INC from which the module was loaded. Also display the sum of the distances of all the modules.
Display how much time was spend loading modules (i.e. between its BEGIN and CHECK blocks were executed). To do that it may need to load Time::HiRes if your program hasn't loaded it already, and the time it takes will add up to the total time; in that case it will warn about it.
http://neilb.org/reviews/dependencies.html - a review of CPAN modules for getting dependency information.
perlrun, perlvar.
https://github.com/neilb/Devel-Dependencies
Jean-Louis Leroy, Europerl, <jll@europerl.be>
Now maintained by Neil Bowers <neilb@cpan.org>
Copyright (C) 2006 by Jean-Louis Leroy and Sound Object Logic
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Devel::Dependencies, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Dependencies
CPAN shell
perl -MCPAN -e shell install Devel::Dependencies
For more information on module installation, please visit the detailed CPAN module installation guide.