in reply to question of pack.

If your two computer systems have different endianity, you have to arrange for them to treat the transmission on the wire as the same number. (Relatedly, if you ever use Storable, it's recommended to use nstore and not store, so the data works across hosts.)