in reply to Re: perlbrew clone-modules fails to install lots of modules SOLVED!
in thread perlbrew clone-modules fails to install lots of modules

There is still Color::Rgb on CPAN (note the spelling).
  • Comment on Re^2: perlbrew clone-modules fails to install lots of modules SOLVED!

Replies are listed 'Best First'.
Re^3: perlbrew clone-modules fails to install lots of modules SOLVED!
by Anonymous Monk on Jan 12, 2026 at 18:53 UTC
    > There is still Color::Rgb on CPAN (note the spelling).

    When I noticed modules were missing from doing

    perlbrew clone-modules perl-5.38.2 perl-5.42.0                                                            
    
    I put the results of list-modules for both versions into respective text files and ran diff. Perlbrew listed the Color::Rgb in 5.38 as Color::RGB which caused clone-modules to fail for that module. I just tried to install Color::RGB manually on 5.42 and it failed of course. So I installed Color::Rgb into 5.42 and ran list-modules again and sure enough perlbrew reports that module as Color::RGB! When I went to CPAN and saw
    Color::Rgb - Simple rgb.txt parsing class
    Color::RGB::Util - Utilities related to RGB colors
    
    I didn't know what to think, maybe it got renamed? But I checked out the changes and it did not so I don't know what is going on with perlbrew. Try it yourself:
    % cpanm -v Color::Rgb
    % perlbrew list-modules | grep -i 'color::rgb'
    Color::RGB
    
      I revisited the github issue and decided to take a look at what ExtUtils::Installed has to say about Color::Rgb:
      % perl -MExtUtils::Installed -le '@_=ExtUtils::Installed->new->modules;@_=grep/color::rgb/i,@_;print for@_'
      Color::RGB
      Color::RGB::Util
      
      What about the packlist?
      % perl -MExtUtils::Installed -le 'print ExtUtils::Installed->new->packlist("Color::RGB")->packlist_file'
      /perl5/perlbrew/perls/perl-5.42.0/lib/site_perl/5.42.0/darwin-2level/auto/Color/RGB/.packlist
      
      Inside the packlist?
      % cat /perl5/perlbrew/perls/perl-5.42.0/lib/site_perl/5.42.0/darwin-2level/auto/Color/RGB/.packlist
      /perl5/perlbrew/perls/perl-5.42.0/lib/site_perl/5.42.0/Color/Rgb.pm
      /perl5/perlbrew/perls/perl-5.42.0/man/man3/Color::Rgb.3
      
      The source of this issue still eludes me but I don't think perlbrew is the problem anymore. The output of Module::Metadata shows nothing unusual, module is reported as Color::Rgb.