An easy way to get reverse dependencies is to use
cpangraph.
You'd run it like this:
cpangraph --reverse CGI
It'll produce a svg graph in the current directory. Use your browser to view it. Now, to get to the point where you can run that command, you'll need to install
CPANDB::Generator.
Then run this:
#!/usr/bin/perl
use strict;
use warnings;
use CPANDB::Generator;
my $cpan = CPANDB::Generator->new(
cpan => '/root/.cpan',
sqlite => '/root/CPANDB.sqlite',
)->run;
That will fetch the sqlite database necessary to get the dependencies. It'll take time, so be patient. Next, make sure that your system can handle svg. Here's a bundle that I used, and, trust me, it works. The whole process will take a couple of hours, so hang tight. Then you're good to go.
#!/usr/bin/perl
use strict;
use warnings;
use CPAN;
CPAN::Shell->force('install',
"Test",
"Test::More",
"URI",
"LWP::Simple",
"LWP::Online",
"Time::HiRes",
"Getopt::Long",
"List::Util",
"Scalar::Util",
"Math::Complex",
"Graph::Directed",
"SVG::XML",
"GD::SVG",
"XML::Parser",
"XML::SAX",
"SVG::Parser",
"Pod::Usage",
"XML::Twig",
"SVG::Metadata",
"Class::Date",
"Clone",
"Image::ExifTool",
"Math::Trig",
"Readonly",
"Template",
"Template::Provider::FromDATA",
"Test::Kwalitee",
"Test::Perl::Critic",
"version",
"Test::Pod",
"Test::Pod::Coverage",
"Test::Spelling",
"SVG::Calendar",
"Statistics::Descriptive",
"Tree::DAG_Node",
"Math::Spline",
"Math::Derivative",
"SVG::Graph",
"Transform::Canvas",
"Data::Dumper",
"Config::General",
"SVG::Template::Graph",
"DateTime",
"HTTP::Date",
"Compress::Zlib",
"XML::XPath",
"Math::BaseCnv",
"XML::Tidy",
"SVG::TT::Graph",
"Geo::ShapeFile",
"Date::Simple",
"XML::Generator::SVG::ShapeFile",
"SVG::DOM2",
"GD::Text",
"UML::Sequence",
"IO::String",
"Image::Info",
"Test::NoWarnings",
"Graphics::ColorNames",
"Graphics::ColorNames::WWW",
"SVG::Sparkline",
"Class::Accessor",
"Cairo",
"Pango",
"Params::Validate",
"Exception::Class",
"Test::Exception",
"SVG::Rasterize",
"Graph::Easy",
"Graph::Easy::As_svg",
"Class::Accessor::Fast",
"Module::Load",
"Module::Pluggable::Fast",
"XML::LibXML",
"SVG::Convert",
"SVGGraph::Pie",
"Test::XML",
"Algorithm::Points::MinimumDistance",
"SVG::Plot",
"SVGraph",
"Heap",
"Graph::Usage");
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.