in reply to Re: Something wrong with metacpan.org? (or Astro::Montenbruck)
in thread Something wrong with metacpan.org?

Noticed an inconsistency in the name of this module. Searching CPAN brings up this result:

Search results for "Astro::Montenbruck"

Astro::Montenbruck - Lightweight Ephemeris


The top of the page shows this (note the dash):

Sergey Krushinsky / Astro-Montenbruck-1.26 / Astro::Montenbruck


The perldoc says:

NAME

Montenbruck - Lightweight Ephemeris


ExtUtils does find the module with a dash instead of colons:
perl -MExtUtils::Installed -MData::Dumper -le 'print Dumper(ExtUtils:: +Installed->new->files("Astro-Montenbruck"))'

Replies are listed 'Best First'.
Re^3: Something wrong with metacpan.org? (or Astro::Montenbruck)
by choroba (Cardinal) on Feb 04, 2023 at 22:26 UTC
    That's normal behaviour, distributions usually have names different to the modules they contain. A colon is not permitted in file names in MSWin32, so you can't name your distribution archive Astro::Montenbruck-1.26.tgz.

    Cf. my Syntax::Construct.

    The ExtUtils find is weird, though:

    perl -MExtUtils::Installed -MData::Dumper -le 'print Dumper(ExtUtils:: +Installed->new->files("Syntax::Construct"))' $VAR1 = '/home/choroba/perl5/lib/perl5/Syntax/Construct.pm'; $VAR2 = '/home/choroba/perl5/man/man3/Syntax::Construct.3pm'; perl -MExtUtils::Installed -MData::Dumper -le 'print Dumper(ExtUtils:: +Installed->new->files("Syntax-Construct"))' Syntax-Construct is not installed at -e line 1.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
      The ExtUtils find is weird

      I've never ever had to use a dash instead of colons to find a module with ExtUtils::Installed. I think that since Astro::Montenbruck can be found by ExtUtils with a dash, and not found with the usual colons, suggests that the author put a dash in some config file where there should have been colons. I tried the dash out of desperation and was shocked that it worked.

      Perhaps this is related to the failure to install the scripts?