How do I install CPAN modules while using perlbrew?

前端 未结 2 828
太阳男子
太阳男子 2020-12-23 11:31

I have started using perlbrew and installed perl-5.12.2.

I understand I need to re-install my CPAN modules, so I switched to my new Perl version (

2条回答
  •  轮回少年
    2020-12-23 12:23

    After installing perlbrew you could install cpanm through this command:

    perlbrew install-cpanm
    

    Otherwise you will need to install cpanm manually each time you switch your Perl version on perlbrew. With this command just once.

    Once installed you can then use cpanm to install the missing module:

    cpanm File::Copy::Recursive
    

提交回复
热议问题