thx Shawn,
 
I guess, it would not check which modules have newer versions available, and 
will install the same modules whihc were there in old PC.
 
I install only those modules which come thru ubuntu, so that (I assume) there 
is some compatibility testing already done. (anD) it does not break anythign 
else in my PERL install.
 
I will try it on test system first.
 
I found another simple way, which works for me (my scripts are simple ones): I 
would just go thru all my scripts and see what am I 'useing' like __  use 
abc::def  __ and then make a list of those. then go on target system and open 
some tool like synaptic (for ubuntu) and install all those modules. :) I will 
try that too.
 
ty.
Rajeev


________________________________
From: Shawn H Corey <shawnhco...@gmail.com>
To: beginners@perl.org 
Sent: Tuesday, June 5, 2012 3:29 PM
Subject: Re: moving from ubuntu 10.04 to 12.04. how to have same PERL modules 
there?

On 12-06-05 04:00 PM, Rajeev Prasad wrote:
> for e.g.
> on 10.10: perl ver is: v5.10
> on 12.04 it is: perl (5.14.2-6ubuntu2)
> 
> is there a quick method to do that?

No, but you can adapt this algorithm: 
http://onionstand.blogspot.ca/2012/05/moving-modules-across-perlbrew.html

Use this command to create the list of installed modules:

    $ perl -MExtUtils::Installed -E 'print "$_\n" for 
ExtUtils::Installed->new->modules' > /tmp/installed.list

Copy installed.list to the target system, install `cpanm` and then use this 
commnad to install them:

    $ cat /tmp/installed.list | cpanm --interactive


-- Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

    _Perl links_
official site  : http://www.perl.org/
beginners' help : http://learn.perl.org/faq/beginners.html
advance help    : http://perlmonks.org/
documentation  : http://perldoc.perl.org/
news            : http://perlsphere.net/
repository      : http://www.cpan.org/
blog            : http://blogs.perl.org/
regional groups : http://www.pm.org/

-- To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/

Reply via email to