Hi Chris,

Perl's special variable $^O contains the name of the OS,
which is, e.g.

  $^O eq 'hpux'      # on HP-UX
  $^O eq 'MSWin32'   # on Windows
  $^O eq 'linux'     # on Linux

Hope this helps,

-- Marcus  

| I need to find out which OS I am on -
| It would be nice to know:
| Ref Hiat
| Mandrake
| Slackware
| W2K
| W98
| WME
| WXP
| Solaris
| AIX, etc
| 
| but
| 
| Unix
| Linux
| W32
| 
| 
| is fine also....
| 
| How can I do this???

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to