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

Hi all, I have a perl script which needs to be run by an 5.8 version of perl. I want to use this perl (version 5.8) instead of the standard one(default or installed). I have this perl (versin 5.8) on a standard location. which can be accessed by all systems in my lan. I am aware that this can be done by setting PATH variable. But i dont want my script users to do this(i.e, setting the path variable by themselves), i want to handle this(using non standard perl.exe instead of the standard one)in my own script. Is there any way to do this inside the perl script.
  • Comment on Using perl.exe from a non standard location

Replies are listed 'Best First'.
Re: Using perl.exe from a non standard location
by Anonymous Monk on Aug 30, 2009 at 01:36 UTC
    No. Use pl2bat, and make sure it uses the correct path.
      Thanks for the suggestion.
Re: Using perl.exe from a non standard location
by ikegami (Patriarch) on Aug 31, 2009 at 04:17 UTC
    You can always specify the path to the perl executable when launching the script instead of just "perl" or "perl.exe".
    >c:\progs\perl588\bin\perl -le"print $]" 5.008008 >c:\progs\perl5101\bin\perl -le"print $]" 5.010001
Re: Using per.exe from a non standard location
by Bloodnok (Vicar) on Aug 30, 2009 at 01:23 UTC
    I don't know and can't tell, if it's just the lateness of the hour, but your question doesn't seem that clear to me i.e. from the information you supply, I'm not sure what you're seeking to achieve...

    A user level that continues to overstate my experience :-))