in reply to Re: How to find out if it is 32bit or 64bit windows?
in thread How to find out if it is 32bit or 64bit windows?

I read your post and re-read the Config docs before replying here, and just want to try to understand a little better.

You stated that $Config{ptrsize} contains the pointer size of the version of Perl. The Config documentation supports this.

But since a 32 bit Perl can run within a 64 bit Windows environment, how can he be sure his OS version is 64 bit?

For example, if he's using 32 bit Perl on a 64 bit windows, wouldn't this method report 32 bit?

It may not make any difference for his given application. Maybe it's enough to know that he's on 32 bit Perl. But what if the Perl script is making a decision as to whether to install a 32 bit version of some compiled program, or a 64 bit version? The decision wouldn't be guaranteed to be accurate if his basis for deciding is what features Perl was compiled with.

I could be totally wrong, and am just seeking clarification.


Dave

Replies are listed 'Best First'.
Re^3: How to find out if it is 32bit or 64bit windows?
by BrowserUk (Patriarch) on Jun 22, 2011 at 16:36 UTC

    That's why I said: , which is often more salient information.

    Which piece of information is the more salient depends entirely upon the OPs purpose. And until and unless he clarifies that we can never reach a conclusion as to which is the "right answer" to his question. But we've given him ways of determining both, so he can choose for himself.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.