Re: NDBM support
- From: smallpond <smallpond@xxxxxxxx>
- Date: Mon, 30 Jun 2008 14:59:49 -0400
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 **
.
- References:
- NDBM support
- From: alex . turchin
- NDBM support
- Prev by Date: Re: File size too big for perl processing
- Next by Date: FAQ 8.39 How do I set CPU limits?
- Previous by thread: NDBM support
- Next by thread: Re: NDBM support
- Index(es):
Relevant Pages
|