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.
Devel::Dependencies accepts any combination of the following options. For more information on passing options from the command line, see the perlrun manpage.
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.
the perlrun manpage, the perlvar manpage.
This code is maintained in the darcs repository located at http://www.europerl.be/darcs/cpan/Devel-Dependencies. If you want to contribute, please grab Darcs from http://darcs.net and send Darcs patches to my email address.
Jean-Louis Leroy, Europerl, <jll@europerl.be>
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.