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


in reply to DBM Portability?

With DB_File I had the same problem: a big hash (>150Mb) generated on a Win environment had been read by Perl on Slackware 8.0 but NOT on Freebsd 4.3 ...

If you are you using DB_File, you can install the same DB_File version on both machines (different version of the same module could have introduced differences with big hashes).

Another obvious way is to create the dbm again on the second O.S. .

Replies are listed 'Best First'.
Re: Re: DBM Portability?
by PodMaster (Abbot) on Oct 03, 2002 at 11:02 UTC
    I had that problem once (perl upgraded along with DB_File), and then read in the documentation
    Note: The database file format has changed multiple times in Berkeley DB version 2, 3 and 4. If you cannot recreate your databases, you must dump any existing databases with either the db_dump or the db_dump185 utility that comes with Berkeley DB. Once you have rebuilt DB_File to use Berkeley DB version 2 or greater, your databases can be recreated using db_load. Refer to the Berkeley DB documentation for further details.

    ____________________________________________________
    ** The Third rule of perl club is a statement of fact: pod is sexy.