http://www.perlmonks.org?node_id=997917


in reply to How to tell 32 or 64 bit

Alternatively:

C:\> perl -MConfig -E "$t=[split(/-/,$Config{archname})]->[1];printf(q +{%d bit},$t eq "x86"?32:64)" 32 bit

Only works on Windows, though.
This is Just Another Way To Do It. :-)

~Thomas~
confess( "I offer no guarantees on my code." );