What's the easiest way to install a missing Perl module?

前端 未结 24 2708
情深已故
情深已故 2020-11-21 05:28

I get this error:

Can\'t locate Foo.pm in @INC

Is there an easier way to install it than downloading, untarring, making, etc?

24条回答
  •  难免孤独
    2020-11-21 05:45

    Lots of recommendation for CPAN.pm, which is great, but if you're using Perl 5.10 then you've also got access to CPANPLUS.pm which is like CPAN.pm but better.

    And, of course, it's available on CPAN for people still using older versions of Perl. Why not try:

    $ cpan CPANPLUS
    

提交回复
热议问题