-----BEGIN PGP SIGNED MESSAGE----- Moin Randy,
On Sunday 10 July 2005 15:08, Randy W. Sims wrote: > Tels wrote: > > graph-perl-usage is a little script that uses various > > modules/programs to generate usage graphs of Perl package. That is, > > it tracks which package uses or requires which and puts that into a > > graph. Recursively, if you wish so. > > Neato, cool. How difficult would it be to add an option to exclude > certain modules? > > --exclude 'strict' > --exclude 'strict,warnings' > --exclude '::CORE' # all perl core modules > --exclude '/^File.*/' > > or to include only modules matching a regexp > > --include-only '/^Graph/' Not so difficult, I guess. > or just to add a little more challage... > > Looking at your Graph::Easy example, it'd be nice to graph everything > in the Graph::Easy::* namespace plus any 1st level requirements. I.E. > any modules directly referenced by files in the given namespace. > > --include-only '/^Graph::Easy/' --level 1 > > Pushing my luck, no, no, I posted because I wanted *exactly* that feedback. Unfortunately, I wasted my afternoon/evening by playing Morrowind :) But I'll see what I can do tomorrow. if I understand correctly, --level should limit the recursion to only one level - that would be the same as --recurse A. I think --level 2 would then be include A, and anything A uses (level 1) and anything *these* use (level 2), but no more. Did I understand this correctly? --level=inf would then be the default.. Best wishes, Tels - -- Signed on Sun Jul 10 21:56:19 2005 with key 0x93B84C15. Visit my photo gallery at http://bloodgate.com/photos/ PGP key on http://bloodgate.com/tels.asc or per email. "A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work station." -- Unknown -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iQEVAwUBQtF+CHcLPEOTuEwVAQHfPQf/QkzGZEJ9q51qtKF/oybq6KYNBNZxl3a4 BiDMcTGlQBXUOfBcaZva8BVSkn7WCR+eUSzpBwcVrCHKkKpM2opMwC4jnguktaq0 IRO/U1oQ2w1TJIQAYGV6++ls0qU8r9TQ6gF6GmfJRSFYXWOrwgvgDgNplMzLcz93 ni4RyN6Gde5MO3xhiUHEk0pdfy5MHeS+kFz94kMykKbZMeYi/7JxO5ESedrA3zkZ sqF+RdJ+DJRHVWW47/rPbAc/+tiJxPg4KKP99e7qQ+q6PuPigB5MDEtSzX2Lv/ZH ZoEbzJq5/9NPmsFK/wB0oMuqlHGpTgsJUpWjG7tQY0xyQ9TENfi3eg== =zSK0 -----END PGP SIGNATURE-----