On Mon, 18 May 2009, Ben Morrow wrote: > At 4PM +0200 on 18/05/09 you (Konovalov, Vadim (Vadim)** CTR **) wrote: > > Currently, perl on Win32 is already moveable - you can copy installed > > Perl into any directory, even with spaces within directory names, and > > it will run scripts just fine. > > My understanding was that not everything worked quite right, hence the > need for Adam's Portable Perl project. If it's only things like > MakeMaker (which doesn't matter to end-users) that are broken, then > that's less work for me :).
Perl on Windows has located the lib and site/lib directories relative to the location of the perl5x.dll since at least Perl 5.005. It essentially checks if ../lib and ../site/lib exist, and adds them to @INC if they do. If you statically link Perl and don't use perl5x.dll, then the location should be determined relative to the location of the main executable instead, but I have not tested that. One thing that is not updated automatically is %Config::Config, so you cannot rely on it if you simply move Perl around without updating the paths in Config_heavy.pl. Cheers, -Jan