Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: how to detect whether script is being run on Windows at runtime?

by vek (Prior)
on May 10, 2004 at 20:00 UTC ( [id://352196]=note: print w/replies, xml ) Need Help??


in reply to Re: how to detect whether script is being run on Windows at runtime?
in thread how to detect whether script is being run on Windows at runtime?

I think all Sys::Hostname does is tell you the hostname of the machine. Doesn't tell you what OS the machine is running.

-- vek --
  • Comment on Re: Re: how to detect whether script is being run on Windows at runtime?
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: how to detect whether script is being run on Windows at runtime?
by jacques (Priest) on May 10, 2004 at 22:00 UTC
    Whoops! My mistake. Try this from usenet:

    use Config; $ostype = $Config{"osname"};

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-19 19:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found