Still trying to pick up speed on the command line in OSX.
I have installed Apache, and some other server software, but am having problems getting my install of Perl to work. I feel like it's because my Apache install is looking for the base (built-in) Perl that came with OSX which is 5.10.
I have installed the latest version of Perl with MacPorts into another directory:
/opt/local/bin/perl5.16
How do I use the PATH command to make sure it always gets called? I never want to use the 5.10 version in OSX, only my installed version. And while I'm at it, is there a good beginner's explanation of PATH and what it's for and how it's used?
Use MacPorts and install mod_perl. This should build the module with perl5.16 for Apache. Permanently disabling the OS distribution is not a good idea. What shell are you using?
I vaguely recall you can put the /opt/local/bin first in your $PATH and it "should" find it there and run it.
An alternative might be to rename the /usr/bin/perl executible (perl.apple ?) and create a sim link called perl in /usr/bin/ pointing to /opt/local/bin/perl
The $PATH is the safest, presuming it works, of course.