Hello Folks!
I wonder if there is another possibility? Situation:
I got an older Perl5 Version on my win32 machines (corp. network) which are relying on a given version of Perl for a certain application to work.
I installed Strawberry Perl on these machines. So if "Perl" is started it is the old app and all is fine.
perl -v This is perl, version 5.005_03 built for MSWin32-x86
I copied the Perl.exe from strawberry to Perl5.exe
perl5 -v This is perl, v5.10.0 built for MSWin32-x86-multi-thread
so i start my scripts with a .bat File containing:
"perl5 script.pl" ... Is there maybe another (smarter) way or possibility which might be better suited than this?
(Since the path to the Old Perl is overwriting the strawberry path it works ...>)
Thanks in Advance for your thoughts

Update: So a solution to this is to set the environment variables right before executing the scripts as stated by anonymous monk (e.g. by starting a batch file .bat which sets the environment and then starts the perl script:
.
"Strawberry Perl" - can it live together with ActivePerl 5.10.0 Build 1003 (on WinXP)?
Two versions of perl in same machine
Thank you for your help

MH


In reply to Win32: Using another Perl 5 Version without overwriting the Path Variable (Using Multiple Perl Versions on Windows)? by matze77

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.