Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: $^O on windows-systems and Perl interna

by Burak (Chaplain)
on Jun 17, 2010 at 14:24 UTC ( [id://845208]=note: print w/replies, xml ) Need Help??


in reply to $^O on windows-systems and Perl interna

As we all know, $^O always returns 'MSWin32' on windows based systems.
I think it'll return "MSWin64" on 64bit Windows. It's better to check for /MSWin/

Replies are listed 'Best First'.
Re^2: $^O on windows-systems and Perl interna
by BrowserUk (Patriarch) on Jun 17, 2010 at 14:47 UTC
    I think it'll return "MSWin64" on 64bit Windows.

    So far not:

    C:\test\miniball>perl -E"say $^O" MSWin32 C:\test\miniball>perl -v This is perl, v5.10.1 built for MSWin32-x64-multi-thread
      Ok. It looks like MSWin32 is hardcoded in source files. I also saw that several core modules check only MSWin32. So, even if this is a bug, fixing it does not seem to be worth the trouble :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-03-28 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found