in reply to SDBM or Perl hash key length restrictions

From the BUGS section of the SDBM docs:

There are a number of limits on the size of the data that you can store in the SDBM file. The most important is that the length of a key, plus the length of its associated value, may not exceed 1008 bytes.

My suggestion would be to use DB_File or BerkeleyDB, both of which are based on the Berkeley DB Library, and should be free of arbitrary limits.

Another option would be GDBM_File, which uses the GNU Dbm library.

  • Comment on Re: SDBM or Perl hash key length restrictions

Replies are listed 'Best First'.
Re: Re: SDBM or Perl hash key length restrictions
by larryk (Friar) on Mar 27, 2001 at 13:53 UTC
    Thank you. That is exactly what I wanted to know.
A reply falls below the community's threshold of quality. You may see it by logging in.