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

I am now involved a system exporting to an upgrade server machine. New server mainly upgrade the hardware and RAIDed some drives. OS not change, still on XP-pro, HOWEVER, some folder path has changed.

As long as I did not remember what modules added and patches I've did in the old server, eg something like h2xs stuff for encoding problem, ImageMagicK hacks..etc. So I attempt to "copy & paste" the whole ActivePerl folder and config to the new machine in a nasty way.

Here's what I did:
1. Copy and paste the whole ActivePerl folder to the new machine
2. Add Environment PATH ( to where bin\perl.exe locates )
3. Go into registry, LOCAL_MACHINE::Software::Perl and add (Default) => the Perl folder, bindir => the Perl's bin folder, and finally lib => self developed modules folder

Indeed, it (looks) working fine, the whole web service platform is up and run, but I cannot sure if this is safe.
One highlight is that the Perl path has changed from C:\Perl to D:\Programming\Perl\Perl

Would anyone suggest any potential danger?
Any fault check I should investigate more?

  • Comment on Is it safe to export Perl in this way ?

Replies are listed 'Best First'.
Re: Is it safe to export Perl in this way ?
by ikegami (Patriarch) on Oct 11, 2011 at 04:31 UTC

    The changed path might cause problems if some of the "accessories" hardcoded the path. (Wait and see.) Otherwise, it's fine if @INC is fine.

      On XP and higher, you could mount filesystems into folders (similar to Linux/Unix). I'm not sure if that helps in any way, just showing the possibility:
      Microsoft KB307889

      If the files were on the same filesystem but changed folders, it would also be possible to create hardlinks:
      XP fsutil

      I tested the mounting option, but i didn't try fsutil. But AFAIR it works.
      Don't use '#ff0000':
      use Acme::AutoColor; my $redcolor = RED();
      All colors subject to change without notice.
        Thanks Man!!! Though I have no luck to participate any decision on how to config the system. but you introduce me the fsutil is the M$ stuff I already looking for years!! I earned ~~ Thank you very much! =))
      Thanks... O....this reminds me a BIG agenda .. the PPM...
      Go for some investigation first.. Thank again! =)