in reply to what is anydbm_file?

AnyDBM_File - provide framework for multiple DBMs   is what you're looking for, then.

From the documentation:

BEGIN { @AnyDBM_File::ISA = qw(DB_File GDBM_File NDBM_File) } use AnyDBM_File; use POSIX; use NDBM_File; use DB_File; tie %newhash, 'DB_File', $new_filename, O_CREAT|O_RDWR; tie %oldhash, 'NDBM_File', $old_filename, 1, 0; %newhash = %oldhash;

Although there is not very much to see, what more is needed?

Cheers, Sören

Replies are listed 'Best First'.
Re: Re: what is anydbm_file?
by Anonymous Monk on Apr 01, 2004 at 14:58 UTC
    I don't mean to be critical, but this is a good example of a bad post. I explicitly stated that I had read the man page for this module and that it had not helped. Restating it does about as much good as speaking loudly and slowly to foreigners.

    The 'else' that is needed is in the posts below this. For example, the man page makes no reference to the ability to select AnyDBM_File as a DB type.

    Thanks to everyone else who posted too, btw, I got just what I needed.

      Thank you for replying after all, Anonymous Monk. You said: I was hoping that anydbm_file would allow me to use whichever was available, but the documentation page for anydbm is very sparse, and doesn't give very good syntax or examples.

      In my understanding, the sniplet of the manual shows that AnyDBM_File does exactly that, allow you use all available DBM drivers. It does so with an example of it's syntax. I don't want to discuss whether it's a good example. It was sufficient to get me going.

      I am sorry I did not help you to your own gain, which I intended to do. But you failed to answer my question as well, so we could not arrive at understanding the other.

      Being a foreigner myself, I am very sorry you felt ill-treated by my post. That was definitely not intended.
      On a side note: speaking slowly sometimes helps understanding, whereas speaking loudly only helps in noisy and crowded spaces.

      Cheerio, Sören