http://qs1969.pair.com?node_id=982944

sedusedan has asked for the wisdom of the Perl Monks concerning the following question:

Is there a simple command-line utility to what modules a CPAN distribution contains, and vice versa in what CPAN distribution(s?) a module is contained? Something in the spirit of 'corelist' (Module::CoreList) or 'module-version' (App::module::version)

Imagined sample input/output:

$ cpandist-contents Foo-Bar
Foo::Bar
Foo::Bar::Sub1
Foo::Bar::Sub2
Foo::Bar::Sub3
Foo::Bar::Sub4::SubSub1

$ cpanmod-find Foo::Bar::Sub3
Foo-Bar