Check out the environment variable $ENV{PROCESSOR_ARCHITECTURE}


I think it’s x86 for 32 bit and AMD64 for 64 bit.




Darin Cruickshanks
Lab Support Manager, Computing Service
University of Essex
01206 873585


From: Vijay Maurya [mailto:vijaykumarmaurya@gmail.com]
Sent: 16 June 2011 13:39
To: Perl-Win32-GUI-Users@lists.sourceforge.net; perl-win32-gui-users-request@lists.sourceforge.net
Subject: [perl-win32-gui-users] How to get the OS version


Hi All,
I want to know the version of my OS so that I can differentiate between 32 bit and 64 bit.I have used Win32::GetOSDisplayName() but its not working.Please help me on Priority basis.......


Thanks in advance.