in reply to SDBM_File byte order

File::Binary would do what you want, as long as you don't need longer than 32-bit words.