Checking the Platform in Perl

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!
mariakvelasco [ Mi, 09 Januar 2008 21:28 ] [ ID #1903953 ]

Re: Checking the Platform in Perl

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

perldoc perlvar: $^O

jue
jurgenex [ Mi, 09 Januar 2008 21:50 ] [ ID #1903956 ]
Perl » comp.lang.perl.misc » Checking the Platform in Perl

Vorheriges Thema: Perl Database Programing download for the template
Nächstes Thema: remove special characters in front of the file names