Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: replicate PERL environment

by Old_Gray_Bear (Bishop)
on Oct 28, 2009 at 17:53 UTC ( #803750=note: print w/ replies, xml ) Need Help??


in reply to replicate PERL environment

Take a look at the 'autobundle' command in the CPAN shell. This creates bundle file based on the content of @INC. You can use the resultant file as input to a 'CPAN install' command. This doesn't get completely away from 'reinstalling everything' (because that what it does under the covers), but it reduces that amount of hand waving you have to do.

According to my copy of Perl In A Nutshell the code looks like this:

perl -MCPAN -e 'autobundle'
This writes a file in your $CPAN_HOME/Bundle with a name that contains the date of the run and a disambiguation counter; for example MyBundle_2009_10_28_00.

You take a copy of the MyBundle file over to your newly built machine, install Perl, issue the command:

perl-MCPAN -e 'install MyBundle_2009_10_28_00'
and Bob's Your Uncle.

----
I Go Back to Sleep, Now.

OGB


Comment on Re: replicate PERL environment
Select or Download Code
Re^2: replicate PERL environment
by fionbarr (Pilgrim) on Oct 28, 2009 at 18:10 UTC
    that's very nice! thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://803750]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-11-22 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (122 votes), past polls