|
|
| 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.
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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||