in reply to Moving perl

If you used -Duserelocatableperl when compiling your own Perl, you can "just"

  1. Copy the Perl tree to a new location
  2. Update lib/Config.pm with the new path
  3. Update site/lib/CPAN/Config.pm with the new path

If you did not use -Duserelocatableperl, you cannot easily move Perl because many paths are hardcoded into Perl. The easy approach here is to recompile Perl and then either reinstall all modules or copy all modules and pray that you used exactly the same configuration settings as before.

Replies are listed 'Best First'.
Re^2: Moving perl
by Anonymous Monk on Aug 22, 2015 at 00:57 UTC
    Yup, Portable can help you fake that :)
    /new/path/perl.exe -MPortable foo.pl /new/path/perl.exe -MPortable -S cpan Module Module Module