On Thu, 16 Sep 2004, Jenda Krynicky wrote:

> perldoc perlvar
>       ...
> 
>     $OSNAME
>     $^O     The name of the operating system under which this copy of 
> Perl
>             was built, as determined during the configuration 
> process.

Be careful when matching against this though. If you want to match 
"Windows", it seems obvious to match on "win", but that ends up also 
matching Cygwin (Unix on Windows) and Darwin (OSX kernel). Oops!

    <http://use.perl.org/~brian_d_foy/journal/20748>



-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to