Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How can I check from wich OS the script is running?

by RMGir (Prior)
on Jul 26, 2002 at 17:42 UTC ( [id://185612]=note: print w/replies, xml ) Need Help??


in reply to How can I check from wich OS the script is running?

The $^O builtin variable will tell you.

From perldoc perlvar:

$^O The name of the operating system under which this copy of Perl was built, as determined during the configuration process. The value is identical to "$Config{'osname'}". See also the Config manpage and the -V command-line switch documented in the perlrun manpage.
--
Mike

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://185612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-19 13:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found