Chapter 19. Perl and Python
As far as Perl and Python are concerned, Mac OS X is just another Unix. But there are some niceties and some quirks that make things a little different from the developer’s perspective. In particular, much of Mac OS X’s non-Unix APIs, such as Carbon and Cocoa, are accessible through extension modules in both languages.
We suggest limiting your customization of the Perl and Python that came with Mac OS X, since they are both fair game for modification during an upgrade or patch. You could either end up modifying something that the system depends on, or you could end up with a partially broken installation the next time Software Update performs a big Mac OS X update.
It’s fine to install whatever modules you want, but if you choose to install a customized or newer version of either Perl or Python, install them in /usr/local so they don’t interfere with the ones in /usr. Check the documentation (INSTALL or README files) that came along with the source code for any information specific to Mac OS X, and instructions for specifying an alternate installation prefix.
Perl for Mac OS X Geeks
The following sections list a few of the extras that come with Mac OS X. You can find these in /System/Library/Perl/Extras, which is among the paths that the bundled version of Perl searches for modules.
Mac::Carbon
This module comes by way of MacPerl (http://www.macperl.org), a distribution of Perl for Mac OS 9 and earlier. Mac::Carbon (which is included with Mac OS X) gives Perl ...
Get Mac OS X Tiger for Unix Geeks, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.