Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl Operating System Sanity Checking

Status
Not open for further replies.

flawless69

Programmer
May 31, 2002
86
US
I'm developing a script which is to run on both UNIX and W2K. I need the script to be able to determine which system it is running on and then execute relevant code. Is there a simple, clean way of determining what OS the script is running under?
 
$^O contains the "os"
mswin32 is the value for windows ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Thanks a bunch, thats exactly what I was looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top