in reply to Re^2: Customary Perl setup on Apple Mac OS X?
in thread Customary Perl setup on Apple Mac OS X?

The great thing is I don't know the answer and I don't have to care. It just works. I have 5.10 on this thing. I left the default install in place and just made /usr/bin/perl point to my new perl. The perl installation walks you through that question/setting.

moo@cow[50]~>sl /usr/bin/perl lrwxr-xr-x 1 root wheel 25 Mar 23 10:53 /usr/bin/perl@ -> /usr/loc +al/bin/perl5.10.0

I can check various critters with perldoc -l but I've never once had to set up anything special for paths except the symlink for the new perl. That's the joy of root. If you don't do it as root, there are some great posts here about local CPAN installs. Here are a couple of examples of locations on this box but I had no idea where they'd be before checking-

moo@cow[51]~>pd -l Storable /usr/local/lib/perl5/5.10.0/darwin-2level/Storable.pm moo@cow[52]~>pd -l Catalyst /usr/local/lib/perl5/site_perl/5.10.0/Catalyst.pm

Replies are listed 'Best First'.
Re^4: Customary Perl setup on Apple Mac OS X?
by wrinkles (Pilgrim) on Aug 05, 2008 at 06:29 UTC
    I'm timid about messing with my mac's system files, so I've "opted" for a local, non-root install of my cpan library. I'd like to update to 5.10 however. Is there no reason to be concerned about symlinking to a local perl install? What is the best alternative to a symlink?

      If you don't link to the other perl you just have to call it from your scripts instead so-

      #!/usr/bin/perl

      becomes-

      #!/usr/local/bin/perl
      moo@cow[58]~>/usr/local/bin/perl -v This is perl, v5.10.0 built for darwin-2level...

      Or /opt/ or wherever you put it. I think. If I'm wrong someone will likely correct me. In the sysadmins and masochists I mentioned before, I'm pretty solidly in the second set. :)