http://qs1969.pair.com?node_id=845208


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/
  • Comment on Re: $^O on windows-systems and Perl interna

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 :)