http://www.perlmonks.org?node_id=1109711


in reply to reliably test integer size for portable bit-fiddling?

The normal way to figure out how big your ints are is this:
use constant MAXINT => ~0;
which is quite a bit easier to read.