Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: How to tell 32 or 64 bit

by bulk88 (Priest)
on Oct 08, 2012 at 15:09 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-23 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found