cat <<'EOT'> /opt/perl/perl_profile.sh #!/bin/sh PERL_VER=5.10.1 export PERL_VER PERL_BASE=/opt/perl export PERL_BASE PERL_HOME=$PERL_BASE/current export PERL_HOME # ensure that the local perl is at the front of the path, but don't # add it again if it is already there. ( echo $PATH | grep "^$PERL_HOME" > /dev/null ) || PATH=$PERL_HOME/bin:$PATH export PATH EOT chmod 755 /opt/perl/perl_profile.sh