|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Multiple Strawberry Perl Versions under Windowsby VinsWorldcom (Priest) |
| on Oct 10, 2012 at 02:30 UTC ( #998116=note: print w/ replies, xml ) | Need Help?? |
|
I use 'junction' in a batch script to achieve this. I installed the latest Strawberry Perl (5.16.1) for Windows 7 in the default directory. Then I just renamed the directory to 'strawberry-5-16'. I created a few new directories in the root:
I then grabbed the ZIP versions of the associated Strawberry Perl versions corresponding to the directories and unzipped them directly into their respective directories.
Finally, to use the Perl I want, I just use the following batch script 'perlreloc.bat'. For example, if I want to use 5.16, I just type:
The script basically creates a junction (like a link in *nix) so c:\strawberry actually points to c:\strawberry-5-16 (in the above example). With this way, you don't need to use the Strawberry relocation script and older versions of Strawberry that don't support relocation will still work because when activated with the batch file, they appear to be running in their default directory - c:\strawberry. perlreloc.bat:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||