Re: Detecting OS X version from perl

2007-10-14 Thread Chris Devers
On Oct 14, 2007, at 6:56 PM, David Cantrell <[EMAIL PROTECTED]> wrote: On Sun, Oct 14, 2007 at 10:45:30AM -0700, Edward Moy wrote: % perl -e 'chomp($vers = `sw_vers -productVersion`); print "$vers\n"' That will get you either 10.x or 10.x.y. You just need to strip off the .y if it is there.

Re: Detecting OS X version from perl

2007-10-14 Thread David Cantrell
On Sun, Oct 14, 2007 at 10:45:30AM -0700, Edward Moy wrote: > % perl -e 'chomp($vers = `sw_vers -productVersion`); print "$vers\n"' > That will get you either 10.x or 10.x.y. You just need to strip off > the .y if it is there. Perfect, thanks! -- David Cantrell | Nth greatest programmer in t

Re: Leopard Perl version...

2007-10-14 Thread Edward Moy
On Oct 14, 2007, at 7:28 AM, Daniel Staal wrote: --As of October 14, 2007 12:26:50 PM +0200, [EMAIL PROTECTED] is alleged to have said: Why is that? Does Apple not provide the resources to make this possible? Personally I think they should because the Mac is a great development platform. I

Re: Detecting OS X version from perl

2007-10-14 Thread John Delacour
At 17:29 +0100 14/10/07, David Cantrell 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. print `osascript -e 'tell app "Finder"

Re: Detecting OS X version from perl

2007-10-14 Thread Edward Moy
% perl -e 'chomp($vers = `sw_vers -productVersion`); print "$vers\n"' That will get you either 10.x or 10.x.y. You just need to strip off the .y if it is there. Ed On Oct 14, 2007, at 9:29 AM, David Cantrell wrote: Is there any simple way that people can think of to detect which major ver

Detecting OS X version from perl

2007-10-14 Thread David Cantrell
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. -- David Cantrell | Hero of the Information Age I caught myself pulling grey hairs

Re: Leopard Perl version...

2007-10-14 Thread Daniel Staal
--As of October 14, 2007 12:26:50 PM +0200, [EMAIL PROTECTED] is alleged to have said: Why is that? Does Apple not provide the resources to make this possible? Personally I think they should because the Mac is a great development platform. I think Apple would win more developers to the platform

Re: Leopard Perl version...

2007-10-14 Thread jeremiah
On Oct 14, 2007, at 11:55 AM, [EMAIL PROTECTED] wrote: The subject line was "Leopard Perl version", Sorry, I misunderstood. so I said it's been 5.8.8 for quite a while. It is no secret that we (Apple) try our best to keep up-to-date with perl (and other opensource projects) at every maj

Re: Leopard Perl version...

2007-10-14 Thread emoy
On Oct 13, 2007, at 6:17 PM, Bo Lindbergh wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Edward Moy) wrote: % perl -v This is perl, v5.8.8 built for darwin-thread-multi-2level But still no 64-bit integers? As long as Configure says: Perl can be built to take advantage of 6

Re: Leopard Perl version...

2007-10-14 Thread emoy
On Oct 13, 2007, at 7:52 PM, Joel Rees wrote: *ahem* Go back and read Mr Moy'ss email address. He may be in a position to answer this question definitively. :-) FWIW, I didn't see Ed saying that it had been 5.8.8 in _10.4_ for quite a while. (His mode of expression was, admittedly, a bit

Re: Leopard Perl version...

2007-10-14 Thread Bo Lindbergh
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Edward Moy) wrote: > % perl -v > > This is perl, v5.8.8 built for darwin-thread-multi-2level But still no 64-bit integers? /Bo Lindbergh