in reply to Re^4: 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

submit-cpan-ratings is a script which automates the process of finding the modules you've used in your code
I read an implied "ever", as in not in specific code, but modules that you've used (and are therefore in site_perl)

If you submit this to CPAN (presumably to cpan scripts) I'd recommend PARing in the modules.

What's to parse? You can File::Find to walk the tree no? Then use existing &get_installed_module_version.

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

  • Comment on Re^5: submit-cpan-ratings - upload ratings to CPAN for stuff you've used

Replies are listed 'Best First'.
Re^6: submit-cpan-ratings - upload ratings to CPAN for stuff you've used
by diotalevi (Canon) on Aug 24, 2004 at 01:02 UTC
    I wouldn't know what the module's package is without looking at the package declaration.
      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.
Re^6: submit-cpan-ratings - upload ratings to CPAN for stuff you've used
by diotalevi (Canon) on Aug 24, 2004 at 04:17 UTC
    If you submit this to CPAN (presumably to cpan scripts) I'd recommend PARing in the modules.

    Huh?