in reply to Re^5: submit-cpan-ratings - upload ratings to CPAN for stuff you've used
in thread submit-cpan-ratings - upload ratings to CPAN for stuff you've used

I wouldn't know what the module's package is without looking at the package declaration.
  • Comment on Re^6: submit-cpan-ratings - upload ratings to CPAN for stuff you've used

Replies are listed 'Best First'.
Re^7: submit-cpan-ratings - upload ratings to CPAN for stuff you've used
by belg4mit (Prior) on Aug 24, 2004 at 03:54 UTC
    True, but it seems to be rare that a module's interface namespace is different from where it lies in the tree so you try to load and fetch version from that before parsing for package. Parsing for package is also uncool because you can have many, which is the one true? If you're lucky all will fall under one e.g; package Foo; package Foo:Bar; package Foo:Quux

    --
    I'm not belgian but I play one on TV.

      Yes, parsing perl is uncool but that's exactly how the PAUSE indexer works. In cpandiff - diff local source against CPAN I include a parse_packages function which is stripped right from the 457 release of CPAN.