in reply to How to tell 32 or 64 bit
perl -E 'say log(~0)/log(2)'
update:
Note that this command shows the number of bits on an IV, the type used internally by Perl to handle integers. Usually, it has the same number of bits as the CPU architecture but it is also possible to compile Perl for a 32 bits architecture while having 64 bits IVs. For instance, Debian does it.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to tell 32 or 64 bit
by Tux (Canon) on Oct 08, 2012 at 09:23 UTC | |
Re^2: How to tell 32 or 64 bit
by Anonymous Monk on Oct 08, 2012 at 08:44 UTC | |
Re^2: How to tell 32 or 64 bit
by bulk88 (Priest) on Oct 08, 2012 at 15:09 UTC |
In Section
Seekers of Perl Wisdom