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

I have never had to do this before, so bear with me. We are running HP-UX on an HP L1000 and the Perl distribution present is 4.0. I recently installed Perl5.00503, but
perl -v
still shows version 4.0. Should I move
/usr/local/bin/perl5.00503
to
/usr/local/bin/perl
or did I miss something? Thanks!

Replies are listed 'Best First'.
Re: Upgrade from Perl4
by zigster (Hermit) on Apr 24, 2001 at 18:27 UTC
    You are better off using a symlink <code > ln -s /usr/local/bin/perl5.00503 /usr/local/bin/perl </code> This makes /usr/local/bin/perl a kinda alias for perl5. They share the same inode. Using a symlink like this means upgrades in the future are easy and easily rolled back.
    --

    Zigster
Re: Upgrade from Perl4
by LordAvatar (Acolyte) on Apr 24, 2001 at 19:26 UTC

    HP by default has their Perl4 distro in

    /usr/bin/perl

    .

    When you run

    perl -v

    Version 4 will run by default and not the Perl5 executable.

    Following zigster's post above, set up a symlink. But, I
    would also add a symlink between /usr/bin/perl and the location
    of your perl5 executable. -LordAvatar