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"};