how to transfer all modules from one perlbrew environment to another?

I mean something like rvm’s migrate resp. upgrade.
Looks like list-modules helps me there.

I had to upgrade somehow, but the published path didn’t work for me. After I removed $HOME/.perlbrew and I did a fresh installation, I was successfully upgraded.
Now this runs smoothly:

$ perlbrew list-modules

Right now I am running a

$ perlbrew upgrade-perl # upgrading to 5.16.1

And I hope, even this will run smoothly afterwards:

$ perlbrew list-modules | perlbrew exec –with perl-5.16.1 cpanm 

It said:

Upgrading perl-5.16.0 to 5.16.1
Fetching perl-5.16.1 as /usr/local/perlbrew/dists/perl-5.16.1.tar.bz2
Installing /usr/local/perlbrew/build/perl-5.16.1 into /usr/local/perlbrew/perls/perl-5.16.0

Installing 5.16.1 broke today. Alright, I will try something else:

$ perlbrew list-modules | perlbrew exec –with perl-5.14.2 cpanm

I had a few messages like this one:

! Finding HTML-TableExtract on cpanmetadb failed.

Installing manually with cpanm replacing “-” by “::” worked anyway, eg. HTML::TableExtract instead of HTML-TableExtract.

==========

I will try installing (“upgrade-perl”) 5.16.1 again sooner or later …

I wonder, what this will say afterwards:

$ perlbrew list

Will it list 5.16.0 and also 5.16.1?

I like my “stable” alias:

$ perlbrew alias create perl-5.16.1 stable 


Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.