How do I find out which version of Perl is available on older versions of Mac OS X?

I want to create Perl scripts that run on older OS X machines, as well as in current versions. Is there a list or resource where I can find out which versions of Perl were distributed with older versions of Mac OS X (10.0 to 10.6)?

+6
perl macos
source share
1 answer

I'm sure there are some online resources to find this, possibly in Apple Development Connection

However, I have three machines that show me the versions of / usr / bin / perl:

  • 5.8.6 at 10.4 (Tiger)
  • 5.8.8 by 10.5 (Leopard)
  • 5.10.0 to 10.6 (Snow Leopard)

In all cases, these are threads.

Starting with Snow Leopard, several versions of perl are supported under the hood, and also comes with Perl 5.8.9, which you can switch like this:

defaults write com.apple.versioner.perl Version 5.8.9 

Also note that 5.10.0 on Snow Leopard is 64-bit. You can switch to 32-bit using the following:

 defaults write com.apple.versioner.perl Prefer-32-Bit -bool yes 

/ I3az /


Update :

The full list of Perl source code that Apple compiled with Mac OS X can be found on the Perl open source page .

Determining what the package version numbers mean and how they relate to each version of Mac OS X can bring some effort. However, each package shows which Perl was compiled with the parameters, patches, and add-ons that Apple applied to it.

Check out the versions of Perl and Mac OS X to best deal with this.

+11
source share

All Articles