in reply to Re^2: reliably test integer size for portable bit-fiddling?
in thread reliably test integer size for portable bit-fiddling?

Your code seems to work fine here:

C:\test>\perl32\bin\perl -e"print length(pack('j', -1))*8;" 32 C:\test>perl -e"print length(pack('j', -1))*8;" 64

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.