Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by myocom (Deacon)
on Jul 26, 2002 at 18:26 UTC ( [id://185621]=note: print w/replies, xml ) Need Help??


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

Note: I'm not sure how the Config solution above will work on something like ActiveState which is pretty much precompiled bins.

I know: not well... That returns MSWin324.0, which is clearly not true for my platform (ActivePerl 5.6.1 on WinXP).

"One word of warning: if you meet a bunch of Perl programmers on the bus or something, don't look them in the eye. They've been known to try to convert the young into Perl monks." - Frank Willison

Replies are listed 'Best First'.
Re: Re: Re: How can I check from wich OS the script is running?
by ichimunki (Priest) on Jul 26, 2002 at 18:39 UTC
    Looks to me like [MS]Win32/4.0 is the system that AS compiled the binaries on (since Config.pm is created during compile for the purpose of recording such information). Because Win32 binaries are compatible across Windows versions this means that relying on that is misleading.

    However, the shell command 'ver' on my machine emits "Microsoft Windows 2000 [Version 5.00.2195]", so if you need more granular information about which Windows version you are running on, you might try that.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-28 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found