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

Good morning, I'm on an NT 4.0 locked down workstation, which currently has Perl 5.6 installed for both development and production. Our website is semi-automatically refreshed daily using a suite of programs and modules written in Active State Perl 5.6 Now I need to revise the website program to take account of unicode and to that end I need to install Active State Perl 5.8. At the same time, the production site (Perl 5.6) needs to stay fully operational. When I installed 5.8 it overwrote all the settings of 5.6 (registry and @INC) which meant the production site stopped working. Given that I have only limited access to the registery, all I could do was de-install 5.8 and re-install 5.6. Has anyone any idea how I can put both instances on the same workstation and keep them entirely separate please? I've searched the documentation on the Active State website but couldn't find anything. Thanks in advance, Anne Webel

Replies are listed 'Best First'.
Re: Cohabit Perl 5.6 and 5.8
by tachyon (Chancellor) on Dec 11, 2002 at 10:56 UTC

    When you do the install you get a number of options. You will need to select a different install directory from 5.6, say c:\perl5-8 and you will not want to add the .pl file association. Nor do you want to add perl to your PATH. After you have finished you will need to make sure that your PATH includes the path to the 5.6 perl.exe but does not include the path to the 5.8 perl.exe. To run a development program with 5.6/5.8 you would then need to:

    # run with 5.6 (or double click on) >perl my_prog.pl # run with 5.8 >c:\perl5-8\bin\perl.exe my_prog.pl # this should say 5.6 >perl -v # this should say 5.8 >c:\perl5-8\bin\perl.exe -v

    If all else fails (due to overwriting registry info) you could install Indigo Perl to do 5.6 and AS Perl to do 5.8. As these are separate entities you should not get into too much trouble.

    In a worst case you could install perl 5.8 in a virtual machine (Vmware) on the desktop. This is guaranteed to work.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      also make sure your PERL5LIB environment variable is empty. otherwise your installed modules will not work, as 5.008 is requires module rebuilds.

      ~Particle *accelerates*

      Good morning, Thank you all so much for your helpful suggestions.
      In accordance to Murphy's Law, the day after I posted this someone from the helpdesk came to install something and we got the famous 'blue screen' which MS loves to exhibit from time to time.
      When I left work Friday night, I had just been delivered a new, all singing all dancing locked down PC and on Monday morning I shall start trying to get my working environment back on line.
      Once that has been done, I shall follow your suggestions. I'm sure that with all the pointers you have given me, I should be able to get further down the line than previously.
      Sorry for now replying sooner,
      Anne
Re: Cohabit Perl 5.6 and 5.8
by Aristotle (Chancellor) on Dec 11, 2002 at 14:31 UTC
Re: Cohabit Perl 5.6 and 5.8
by strat (Canon) on Dec 11, 2002 at 12:14 UTC
    I'd just install perl5.8 into a new directory (e.g. d:\perl5.8; take care not to change file assoziations) and add it to %PATH%, but after the old perl (so if you call perl scriptname.pl, you will use perl5.6). If you want to use perl5.8, just use perl5.8.0 scriptname.pl...
    If you use CGI-Scripts with Ms Internet Information server, just assign a new file extension (e.g. .pl58) with perl5.8

    Best regards,
    perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"