In article <[EMAIL PROTECTED]>, David
Cantrell <[EMAIL PROTECTED]> wrote:

> Is there any simple way that people can think of to detect which major
> version of OS X my perl code is running on?
> 
> ie whether it's 10.0, 10.1 etc, I don't care about the difference
> between 10.3.3 and 10.3.4.

I was thinking about this last week because some of the stuff in
/usr/include changed between Panther and Tiger.

I've uploaded Mac::OSVersion, which I was working on at the same time
this thread came up. It has various methods to get the major, minor,
bugfix, build, and kernel numbers. It can also get those numbers
through various methods.

I've only tried in on Tiger so far, I'm trying to get my Panther
machine back up, and I haven't turned any work machines into Leopards
yet. Does anyone have something with Cheetah or Puma on it? 

Does anyone have a matrix of Mac OS X version, build number, and kernel
versions? I'd like to have at least one method that just looks at a big
table.

I don't know how good this info is:

http://developer.apple.com/hardwaredrivers/download/usbdebug.html
http://en.wikipedia.org/wiki/Darwin_%28operating_system%29

Reply via email to