Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find out which Perl version was available on older Mac OS X versions?

Tags:

macos

perl

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

like image 694
z3cko Avatar asked Jan 19 '10 11:01

z3cko


1 Answers

I'm sure there is some online resource to find this, probably at Apple Development Connection

However I have three machines to hand which show me that /usr/bin/perl versions are:

  • 5.8.6 on 10.4 (Tiger)
  • 5.8.8 on 10.5 (Leopard)
  • 5.10.0 on 10.6 (Snow Leopard)

In all cases these are thread enabled.

Starting from Snow Leopard, multiple versions of perl are supported under the hood and it also comes with Perl 5.8.9 which you can switch to like so:

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 by using following:

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

/I3az/


Update:

A full list of Perl source code that Apple has compiled with Mac OS X can be found on their Perl opensource page.

Working out what the packaging version numbers mean and how they refer to each version of Mac OS X may take some effort. However each package does show which Perl was compiled with the options, patches & extra modules Apple applied to it.

See Perl and Mac OS X versions for my best stab at working all this out.

like image 191
draegtun Avatar answered Sep 21 '22 01:09

draegtun