in reply to Re: creating SDBM_File
in thread creating SDBM_File

I didn't display code because I'm using it as I did with DB_File when it worked. My new webhost told me DB_File does not work with Cpanel, I've tried using the module that they said is installed but it keeps telling me it can't locate DB_File. So that's the reason I'm trying to do this, I don't want to, but I can't access DB_File. Unless anyone has a different module which works very similar to DB_File in the way it comes with Perl and I won't need to change anything except tying the database?

Replies are listed 'Best First'.
Re: Re: Re: creating SDBM_File
by ysth (Canon) on Mar 09, 2004 at 02:59 UTC
    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.

      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.