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

Hello,

I am new to using a Mac and I was trying to checkout Perl/Tk so OK, I try to follow direction, after installing a newer version of Perl in a new location ( /usr/local/lib/) I now have a sucessful install, but how do I get my machine to recognize the new version and not the old? When I 'perl -v' I get 5.8.1, the original Mac install.

Your help is appreciated

- D

Replies are listed 'Best First'.
Re: Perl 5.8.6 on Mac
by punkish (Priest) on Dec 06, 2004 at 03:27 UTC
    #!/usr/local/lib/perl

    instead of

    #!/usr/bin/perl
Re: Perl 5.8.6 on Mac
by jdalbec (Deacon) on Dec 06, 2004 at 03:17 UTC
    Try
    $ echo export 'PATH=/usr/local/bin:$PATH' >> ~/.profile
    then close your Terminal window and open a new one (Cmd-N).