Checking the Platform in Perl

Checking the Platform in Perl

am 09.01.2008 21:28:45 von mariakvelasco

Hello all,

Is there a way using perl code to check what platform the script is
running on? I have a script that runs on both windows and unix
platforms and I want to check what platform the script is running on
because I will be executing different sections of the code depending
on the platform.

Thanks!

Re: Checking the Platform in Perl

am 09.01.2008 21:50:42 von jurgenex

mariakvelasco@gmail.com wrote:
>Is there a way using perl code to check what platform the script is
>running on?

perldoc perlvar: $^O

jue