Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 ( #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


Comment on Re: Re: How can I check from wich OS the script is running?
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
Node Status?
node history
Node Type: note [id://185621]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (16)
As of 2014-10-20 12:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (75 votes), past polls