Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Just another Perl shrine
 
PerlMonks  

Re: How do I tell what OS I'm running under?

by Adam (Vicar)
on Jan 14, 2001 at 00:55 UTC ( [id://51675]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to How do I tell what OS I'm running under?

The quick answer, which you have recieved, is that $^O contains the "name" of the OS. This is actually imprecise. Particularly, the value of $^O is compiled in, but $^O = MSWin32 on all of: Win95, 98, me, NT, and 2k. That isn't very helpful. Worse, $^O isn't write protected, meaning that someone could stick "MSWin32" in there when you were expecting "bsdos" or "solaris".

Of course, for the most part $^O is sufficient.

  • Comment on Re: How do I tell what OS I'm running under?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://51675]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.