in reply to Relocatable Perl-based apps

On Windows, you could always (or at least since Perl 5.6.1) take the Perl directory and move it wherever you like. You only need to update CPAN/Config.pm, but Perl.exe would still find all relevant directories, like lib/ and site/lib, as long as Perl.exe resides in bin. On older operating systems, especially the Unixish variant, all the directory paths are hardcoded in the perl executable, and thus you will encounter various problems should you move the Perl libraries from (say) /opt/perl/ to /usr/local/perl/ without recompiling or patching your perl executable.

I'm happy that Nick works on bringing Unixish systems up to par with Win32-based systems!

Replies are listed 'Best First'.
Re^2: Relocatable Perl-based apps
by Aristotle (Chancellor) on Feb 23, 2006 at 07:10 UTC

    And hopefully CPAN.pm will then follow suit, so you eventually you won’t have to change its configuration either.

    Makeshifts last the longest.

Re^2: Relocatable Perl-based apps
by PodMaster (Abbot) on Feb 23, 2006 at 08:27 UTC
    ... like lib/ and site/lib, as long as Perl.exe resides in bin....
    As long as bin isn't under a directory with a name of the form 5.6.2, as I explain in Re: How is the default @INC constructed? :)

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.