ge-
From: Daniel Kasak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 6:25 PM
To: Chris Devers; Tim Johnson; beginners@perl.org
Subject: Re: Detect platform
Chris Devers wrote:
>On Wed, 16 Feb 2005, Tim Johnson wrote:
>
>
>
>>On Wed, 16 Feb 2005, Daniel Kasak
Chris Devers wrote:
On Wed, 16 Feb 2005, Tim Johnson wrote:
On Wed, 16 Feb 2005, Daniel Kasak wrote:
How do I detect what platform I'm running from inside a Perl script?
Check out the $^O variable.
...but be careful in writing code that matches it:
Under Mac OSX:
$ perl -le 'pr
On Wed, 16 Feb 2005, Tim Johnson wrote:
> On Wed, 16 Feb 2005, Daniel Kasak wrote:
>
> > How do I detect what platform I'm running from inside a Perl script?
>
> Check out the $^O variable.
...but be careful in writing code that matches it:
Under Mac OSX:
$ perl -le 'print $^O'
darwin
Check out the $^O variable.
-Original Message-
From: Daniel Kasak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 3:00 PM
To: beginners@perl.org
Subject: Detect platform
How do I detect what platform I'm running from inside a Perl script?
--
To unsubscribe, e-mail: [EMAIL