Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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.


Replies are listed 'Best First'.
Re^2: replicate PERL environment
by fionbarr (Friar) on Oct 28, 2009 at 18:10 UTC
    that's very nice! thanks

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://803750]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2018-05-21 03:35 GMT
Find Nodes?
    Voting Booth?