CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Fun With Perl: Perl Quizzes - Learn Perl the Fun Way:
How to set new perl interpreter within perl script



Apr 2, 2007, 7:44 AM

Post #1 of 2 (51057 views)
How to set new perl interpreter within perl script Can't Post

Hello Friends

I am new to this forum and this is my first post.

I im in big trouble.

I have to set some environment variables within perl script. and
after that i have to set a new perl interpreter for further action.

in detail:

first start the script with general interpreter

then set some environment variables

after that set a new interpreter which will be used for rest of the code.

Friends can you please Help me on this problem.

Thanks in advance.


New User

Jul 29, 2009, 4:26 AM

Post #2 of 2 (48319 views)
Re: [SmallWonder] How to set new perl interpreter within perl script [In reply to] Can't Post


You can use the %ENV for accessing the Environment variables.

Ex: $ENV{'PATH'}, will help you access the PATH Environment variable.

You can set the path of PATH variable to access the different perl interpreter,once you are done setting the other Environment variables.

Hope this helps.


Deepak Vijayaraj


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives