Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: How to tell 32 or 64 bit

by bulk88 (Priest)
on Oct 08, 2012 at 15:09 UTC ( #997835=note: print w/ replies, xml ) Need Help??


in reply to Re: How to tell 32 or 64 bit
in thread How to tell 32 or 64 bit

length(pack('J',0))
in the past I used that, but then I realized that 64 bit IVs but 32 bit pointers and machine code Perls existed, so it is wrong. Another good way to telling is
perl -MConfig -e "print $Config{ptrsize}"
which will return 4 or 8, and is NOT the IV size


Comment on Re^2: How to tell 32 or 64 bit
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997835]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2014-09-22 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (208 votes), past polls