Re: NDBM support



alex.turchin@xxxxxxxxx wrote:
I have an old and rather large (thousands of lines of code) piece of
perl software that utilizes (in numerous places) NDBM databases,
including dbmopen() etc. calls. This code has now been moved by the
website administrator to a different UNIX platform that does not
support NDBM.

Unfortunately I do not have the resources to completely rewirte the
code to utilize a different database. Even more importantly, all of
the data the software uses (unique to the software and took months of
work to enter) is in the NDBM format.

I am therefore looking for a way to obtain perl support for the NDBM
format and corresponding function calls (dbmopen, dbmclose) on a
system that does not natively support them. Any thoughts would be
greatly appreciated!

Alex


This fairly informative article:
http://unixpapa.com/incnote/dbm.html

recommends dumping the data to plain text files in some easy easy-to-parse
format, and regenerating the database using your current dbm implementation.

The APIs are mostly the same, so once the data is in the right format,
the code should not be too big a problem.

Do you still have access to the old platform?
** Posted from http://www.teranews.com **
.



Relevant Pages

  • Question about simple databases in Perl
    ... For now, I was using NDBM, tying a hash with an indexed database. ... I have now tested the sqlite which gives me the power of SQL. ... while(keys %records) { ...
    (comp.lang.perl.misc)
  • Re: Question about simple databases in Perl
    ... For now, I was using NDBM, tying a hash with an indexed database. ... large sizes of the index files, ... I have now tested the sqlite which gives me the power of SQL. ...
    (comp.lang.perl.misc)
  • Re: NDBM support
    ... perl software that utilizes NDBM databases, ... support NDBM. ...
    (comp.lang.perl.misc)
  • Re: NDBM support
    ... perl software that utilizes NDBM databases, ... support NDBM. ...
    (comp.lang.perl.misc)
  • NDBM support
    ... perl software that utilizes NDBM databases, ... support NDBM. ...
    (comp.lang.perl.misc)