Test::CircularDependencies - make sure non of the modules depend on themselves
perl -Ilib script/find-circular-dependencies.pl t/circular_dependency/my_exe.pl --dir t/circular_dependency/
Given one or more scripts, modules, or directories containing those, create a data structure that represents the dependencies. Allow the user to restrict the recursion to files found specific directories.
So let's say we have several application in our company and I'd like to make sure there are no circular dependencies.
projectA/ lib/A.pm bin/exe.pl projectB/ lib/ B.pm Module/ C.pm D.pm
but for histoical reasons while C.pm holds 'package Module::C;' D.pm holds 'package D;' so when we use this we need to
use lib 'projectA/lib'; use lib 'projectB/lib'; use lib 'projectB/lib/Module';
See als circular::require
Gabor Szabo
Copyright 2015 Gabor Szabo, All Rights Reserved.
You may use, modify, and distribute this package under the same terms as Perl itself.
To install Test::CircularDependencies, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::CircularDependencies
CPAN shell
perl -MCPAN -e shell install Test::CircularDependencies
For more information on module installation, please visit the detailed CPAN module installation guide.