Load Config.pm and look at $Config{ptrsize}.  It is either 4 or 8, telling you 
that you are running 32-bit or 64-bit Perl.

 

Cheers,

-Jan

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of
Michael Cohen
Sent: Tuesday, February 22, 2011 1:06 PM
To: [email protected]
Subject: Pulling PERL Exectuable x86 vs x64

 

Is there a simple way to determine what flavor of PERL is running from within a 
program, specifically one that is wrapped within
PERLAPP?  In other words, I need to determine if the PERL is 32-bit or 64-bit, 
to determine if it is running in WoW64 or not.  I
realize it is easy to determine the flavor of the OS, but this is not that 
question. 

Regards,
Michael Cohen

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to