Reinstalling all modules on another perl

Mark Overmeer mark at
Thu Apr 28 09:15:00 BST 2011

* Mark Fowler (mark at [110428 07:09]:
> This will require me to reinstall all my modules.

I am always intrigued by this from

    # install everything that is outdated on my disk:
    perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)'

Could we simply 
    perl -MCPAN -e 'print CPAN::Shell->r' >/tmp/x
    # upgrade my system [safe /tmp/x somewhere first!]
    perl -MCPAN -e 'CPAN::Shell->install(`cat /tmp/x`)'

I always forget to try it ;-)


       Mark Overmeer MSc                                MARKOV Solutions
       Mark at                          solutions at         

More information about the mailing list