zemplen has asked for the wisdom of the Perl Monks concerning the following question:

I have multiple versions of Activestate Perl installed on my machine. Over time I've added and updated modules to the 516 installation. When installing 518 I want the 518 installation to reflect my additions to the 516 installation. Basically I want an updated clone of the 516 installation.

Replies are listed 'Best First'.
Re: Updating Activestate Perl 516 to 518
by jellisii2 (Hermit) on Oct 31, 2014 at 17:18 UTC
    If you installed all of your modules with PPM, you can export that list in a CSV format, parse it, and write a script to generate a PPM install command. PPM commands.
Re: Updating Activestate Perl 516 to 518
by bcarroll (Pilgrim) on Oct 31, 2014 at 17:57 UTC
    Modules that contain XS code (compiled modules) are typically not binary compatible with other Active Perl versions.

    You can use the following perl script to create a batchfile to install all of your ppm modules. Run the script with the old perl version and save the output to a file (ppm.bat), then install the new ActivePerl version and run the batchfile.

    You will need to make sure any PPM repositories you manually configured in the old version are added to the new version.

    use warnings; use strict; foreach( `ppm list` ){ chomp $_; next unless( $_ =~ /site/ ); $_ =~ /^\| (.+?) /; print "ppm install $1\n"; }
      This worked fine for me. I ran it with 516 active. Activated 518. When I ran the bat file it only ran one command and then stopped. Solution is to open a cmd window and paste the contents of the bat file into the cmd window and everything works fine.
Re: Updating Activestate Perl 516 to 518 (autobundle)
by Anonymous Monk on Oct 31, 2014 at 17:18 UTC