Gabor Szabo wrote:
Before releasing or installing a module it might be a good thing
to test all the other CPAN modules that depend on the one to be
released or installed.

Is there a tool to do this?
How would you do this?

Use the CPANTS database to find what depends on your module, then, in a pristine perl environment (ie, one you just built in your home directory) I'd first install the shiny new version of my module and all *its* dependencies, and then:
  .../perl -MCPAN -e 'test qw(All::The Modules::That::Depend On::Me)'

I've not looked at how you might automagically extract the list of dependees (?) from CPANTS, but to do it by hand just look at:
  http://cpants.perl.org/dist/Distribution-Name

to find the list, which is near the bottom on the right.

That list isn't entirely accurate - I know that for one of my modules it lists something that merely mentions my module in its documentation - but it's a good start.

--
David Cantrell

Reply via email to