successor1221955 has asked for the wisdom of the Perl Monks concerning the following question:

A humble enquiry of my fellow Monks, I have a number of SDBM_File type Berkeley Database files that were written in big endian format. I need to read them on a machine that has a little endian native format. I'm not sure how to proceed. Do I have to write a converter using read and unpack functions? or, is there a way to open the file with tie function that will do the conversion for me? Any suggestions? Thank you wise ones!

Replies are listed 'Best First'.
Re: SDBM_File byte order
by Irrelevant (Sexton) on Feb 04, 2005 at 21:48 UTC
    File::Binary would do what you want, as long as you don't need longer than 32-bit words.