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


in reply to emulate 32-bit on perl 64

You can cut off any 1-bit above the 32nd bit after each interesting operation. See perlop for details.