On Thu, 2006-11-30 at 11:40 -0500, Hotz, Harry wrote:
>       I have a new AIX 5.3 server that comes with a default Perl 5.82.
> I have a DB2 programmer that has scripts from an old AIX 4.3 server that
> used Perl 5.005_03. He will have to rewrite his scripts to use the new
> Perl and asked me to install the old version side by side. I did so in a
>  directory and compiled it successfully. He took the user
> account under which the scripts are executing and added a path to the
> profile to point to the location of the old Perl but when he uses it and
> does a perl -version he still gets a return of the 5.8 version. He feels
> this is a guarantee that his scripts will be hitting the wrong version
> and wants to know why he cannot version query the old Perl. 
> 
>       My question is it even possible to successfully work with two

PATH=/usr/lpp/oldperl:$PATH

rather than the normal

PATH=$PATH:/usr/lpp/oldperl

then he prefixes every command with `perl <script>`

As others have pointed out the #! normally points to /usr/bin/perl and
if you cannot prefix calls with perl then you have to change that.


-- 
Ken Foskey
FOSS developer


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to