Some explicitly check and try to get needed modules.
Some fail gracefully and CPAN.pm asks if you want to get them.
Some just fail during testing and leave you to handle it.
So... I thought it would be nice to build a graph of the dependencies.
I have put together some code to look through all of the installed modules and store in a mysql database the following :
- Package Name
- Filename
- Version
- Date installed
- Array of pragmas used
- Array of modules used
Before I spend more time on this, I would appreciate some thoughts from you folks.
Has this been done before ? (I looked on CPAN and SuperSearch and didn't find anything)
Would other find it usefult to have this ?
What sort of output would be useful ?
In answer to the last, I am toying with :
- Just leave it in the database.
- A Web tool which allows browsing up and down the chains.
- A visual graph (e.g. using GraphViz)
Update: Have now done some more work on item 2, sample browser is at Here.
Taking DrZaius's advice, it now also reads the perllocal.pod to get more info and throws that in as well.
Have also added a reverse table, which allows you to see which modules a modules is used by.
The overall effect allows you to browse up and down the tree as you like.
Of course, to solve the original problem of finding out what modules I need to install, this really needs to run on CPAN...
--
Brovnik
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Module dependencies
by DrZaius (Monk) on May 24, 2001 at 21:09 UTC | |
by Brovnik (Hermit) on May 26, 2001 at 02:19 UTC | |
Re: Module dependencies
by Desdinova (Friar) on May 25, 2001 at 19:41 UTC |