Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: I need to know if 32-bit or 64-bit perl is running my script.

by mbethke (Hermit)
on Sep 14, 2013 at 05:47 UTC ( [id://1054057]=note: print w/replies, xml ) Need Help??

in reply to I need to know if 32-bit or 64-bit perl is running my script.

That's nasty, I hope you're writing something that will abstract this away for others :) In C you could check if 0 == 1L<<32 but that would effectively identify your userland which IIRC doesn't have to match the kernel on Solaris. In Perl, even an interpreter running in 32bit userland can use 64bit ints so not even that works. I suppose the most reliable way would be to parse uname -a output somehow.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-06-22 02:39 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.