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

How I can change my default perl Version from 5.005 to 5.6?? I have installed both on my machine..

Replies are listed 'Best First'.
Re: switch Version
by extremely (Priest) on Dec 29, 2000 at 03:47 UTC
    Under Unix at least, switch to the directory you compiled perl in and rerun `make install'. When it gets to the part about "make this version active" or "link ... to this version of perl" answer yes.

    More specifically, or if you installed a pre-built package under Unix, you can usually do a `which perl' at the prompt and get an answer like "/usr/bin/perl". Looking at `ls -l /usr/bin/perl*' should show the "real" perl as well as possibly other binaries. If there is a "perl5.6.0" then you should be able to do

    cd /usr/bin cp perl perl.5.005_03 cp perl5.6.0 perl

    And get up and working...

    --
    $you = new YOU;
    honk() if $you->love(perl)

Re: switch Version
by lemming (Priest) on Dec 28, 2000 at 23:24 UTC
    The non-specific OS answer.

    Change your path search to go to the directory with the 5.6 version first. You may need to check your @INC as well to avoid module confusion.