Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Oh wise ones,

I have several perl scripts that I'd like to have running on a Windows machine.
is there a way I can detect which environment I'm in (eg: Linux, Windows).
I'd like to be able to perform different functions depending on the environment.

Any suggestions would be greatly appreciated...
Thanks

Replies are listed 'Best First'.
Re: Detecting Environment
by toolic (Bishop) on Jan 28, 2009 at 19:42 UTC
      Thank you so much, I should have checked in the search first.
      Thanks
Re: Detecting Environment
by pileofrogs (Priest) on Jan 28, 2009 at 23:25 UTC

    You might also want to peruse perlport.

    --Pileofrogs