Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

perl version

by ford (Novice)
on Feb 19, 2008 at 14:38 UTC ( [id://668798]=perlquestion: print w/replies, xml ) Need Help??

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

Hi, I am working on UNIX machine which has got Perl-5.6.1 by default.As i need Perl 5.8.8 I set some environment variables and convert 5.6.1 to 5.8.8 . this i do it manually all the time. can anyone suggest me any way so that the environment variables get set permanently and i don't have to keep setting all the time. Thanks in Advance Ford..

Replies are listed 'Best First'.
Re: perl version
by andreas1234567 (Vicar) on Feb 19, 2008 at 15:43 UTC
      Hi, Thanks for the advice. I am able to set the environment variables manually. But is there anyway so that these variables get set permanently. Thanks in Advance Ford.

        Environment variables are sort of a shell thing (because the shell usually provides the OS environment which surrounds your computations/program invocations). You may add some default settings of specific environment variables to the profile files that your shell reads at session startup (eg. ".profile" or ".bash_profile") and you'll get the behavior you want. That's what Andreas was telling about when he provided pointers where you could read about shell features.

Re: perl version
by stiller (Friar) on Feb 19, 2008 at 14:49 UTC
    What are you actually doing? You have code that needs Perl 5.8.8 and you make what pretend that you have something more modern than 5.6.1?

    update: aha, reading the below reply it all becomes clearer, even to me. You HAVE both 5.6.1 and 5.8.8, but the default environment is for 5.6.1? Then Andreas advice is very good.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://668798]
Approved by andreas1234567
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-23 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found