For ksh/bash, you can edit the path in /etc/profile to have it affect all users.
For csh, you can edit the path in /etc/csh.cshrc or /etc/csh.login to have it affect all users.
You could also rename the v4 perl to something else, like perlv4. To find it's location, type "which perl" at a prompt before modifying your path.
Main Topics
Browse All Topics





by: yuzhPosted on 2009-02-09 at 16:01:26ID: 23595975
You need to modify the user's login script to use perl 5.8 in their PATH variable,
eg.
for ksh/sh user, put the following in their .profile
PATH=/path-to-perl 5.8/bin:$P ATH
export PATH
for csh/tcsh shell user, put the following in their .cshrc file
set path=(/path-to-perl5.8/bin $path)
after modify the login script, the user login out and their login again, they can start to use perl 5.8