Re: NDBM support



On Jun 30, 3:08 pm, Mark Clements <mark.clementsREMOVET...@xxxxxxxxxx>
wrote:
alex.turc...@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!

Hmmm.

http://perldoc.perl.org/functions/dbmopen.html

(quoted)
**
You can control which DBM library you use by loading that library before
you call dbmopen():

     use DB_File;
     dbmopen(%NS_Hist, "$ENV{HOME}/.netscape/history.db")
        or die "Can't open netscape history file: $!";

**

Can you not install NDBM_File and add a

use NDBM_File;

to the script(s)?

http://search.cpan.org/~rgarcia/perl-5.10.0/ext/NDBM_File/NDBM_File.pm

Mark- Hide quoted text -

- Show quoted text -

Unfortunately no longer have access to the old platform so can't dump
the files out :(

With respect to using NDBM_File - will that work in absence of ndbm
support on the underlying UNIX platform? I don't have admin privileges
to the system and have to beg the admin to install stuff like Perl
modules for me - would like to minimize trial & error if possible if
you know what I mean :)

Thanks!
Alex
.



Relevant Pages

  • 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)
  • Re: NDBM support
    ... of perl software that utilizes NDBM databases, ... support NDBM. ... I am therefore looking for a way to obtain perl support for the ...
    (comp.lang.perl.misc)
  • Re: NDBM support
    ... of perl software that utilizes NDBM databases, ... support NDBM. ... I am therefore looking for a way to obtain perl support for the ...
    (comp.lang.perl.misc)
  • Re: NDBM support
    ... perl software that utilizes NDBM databases, ... support NDBM. ... work to enter) is in the NDBM format. ... and regenerating the database using your current dbm implementation. ...
    (comp.lang.perl.misc)