Try the following on each of the machines.

perl -w -e 'print $^O, "\n";' 

Curtis

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Greg
Schraiber
Sent: Tuesday, July 17, 2007 3:55 PM
To: [email protected]
Subject: determining OS

Hi All!

I have a script (perl v5.8.5) that needs to run on both AIX  and linux.
Does anyone have a code snippit that would allow the script to determine
which OS it is currently running under?  Any help would be greatly
appreciated!

Thank you!
Greg


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to