Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing where perl loads from.

Status
Not open for further replies.

LucL

Programmer
Joined
Jan 23, 2006
Messages
117
Location
US
I have two installations of Perl, 5.8.5 and 5.8.8 in different locations.

The default now is 5.8.8 (after I just installed it), but the old version is still there in a different path. When I run perl -v I get 5.8.8.

What file must I edit to change the path back to the old 5.8.5?

 
I should add this. When I run my scripts from the web they work fine because the /usr/bin/perl is still the old 5.8.5 (which is the one I want) but when I run them from SSH it runs with the 5.8.8 version.

So all I'm trying to change is the version it runs from the shell, for some reason it defaults to 5.8.8 and I want to get it back to default to /usr/bin/perl which is 5.8.5
 
Is this Windows? You'll have to edit your %PATH% variable to point to the right Perl directory.

Click Start -> Control Panel -> System -> "Advanced" tab -> "Environment Variables" button

Go down to "Path" under System Variables and edit that.
 
Thanks, but unfortunately it's not windows. It's a linux redhat box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top