If you just need to run perl programs, copy your perl folder to your USB
drive. Don't worry about Config.pm or your PATH.

Just execute your perl program like this: X:\Perl\bin\perl.exe
X:\YourPerlProgram.pl where "X" is the drive letter of your USB device


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
$Bill Luebkert
Sent: Saturday, December 09, 2006 6:00 PM
To: Vladimir Zelinski
Cc: perl-win32-users@listserv.ActiveState.com
Subject: Re: Portable version of Perl for Windows

Vladimir Zelinski wrote:

> Dear colleagues.
> 
> Probably, question I would like to ask is not a new one, but my search

> on Internet didn't bring any meaningful result.
> I would like to have a portable version of PERL on my USB drive. I 
> want to be able to run programs on a Windows machine from this USB 
> drive. I realize that I need to modify the PATH environmental variable

> to include the USB drive in search path.

No, you don't need to modify PATH, you can always use the full path to
perl.exe when you run it.  Config.pm is probably going to be more of a
problem.

> Normally, when Windows version of PERL installed some information is 
> written into the registry. This seems to me the major problem for 
> achieving this goal.
> 
> I saw on Internet a number of programs that have their portable 
> versions, including such big and complex program like the Microsoft 
> Office. So, it's possible.
> Does anybody have information on portable PERL version for Windows?

There's a reloc_perl{.bat} script in the bin dir that might be useful.
You could relocate the Perl tree when you plug in your USB drive -
either to the hard drive or possibly just map it on the USB drive to the
drive it ended up on on the new system.

I've never done it, so I'm guessing here.

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to