in reply to Re: Re: creating SDBM_File
in thread creating SDBM_File

You can try GDBM_File, or even NDBM_File. See the documentation in AnyDBM_File for a comparison of the different types.

The code you show looks ok; is the tie actually failing? You don't actually say what isn't working.

Replies are listed 'Best First'.
Re: Re: Re: Re: creating SDBM_File
by Anonymous Monk on Mar 09, 2004 at 03:19 UTC
    I will look into those, I hope they come with Perl itself. The code isn't failing, it's saying the module DB_File does not exist. The host says it's installed and I created my own /lib/ with the module inside, but it keeps saying it doesn't exist.
      I thought your question was about SDBM_File failing??

      Update: how are you trying to convert your DB_File database into an SDBM_File one? You can't just use the same file and open it with a different module; they have drastically different formats.

        I am not trying to convert the database, that can be rewritten on the new server. All I need to do is convert my script which worked with DB_File to work with something very similar. The scripted worked fine on my last host, but I can't use DB_File now so I'm looking to use a very similar database where all I change is the USE and the database tie. GDBM doesn't seem to work as with .db, maybe it needs a .gdbm? The documentation doesn't say a thing about it.