Force Perl to work in 32-bit mode
问题 We have an old Perl application. Recently we moved to a new server which runs 64-bit Ubuntu. Old application uses pack/unpack functions and bitwise operations and now it fails because bitwise operations return 64-bit integers instead of 32-bit. Is there a way to force perl into 32-bit mode? If not, is there a way to install 32-bit perl on 64-bit machine? Thanks! 回答1: Is there a way to force perl into 32-bit mode? No, but you could switch to using the correct (portable) pack/unpack patterns