Path: | doc.ic.ac.uk!doc.ic.ac.uk!not-for-mail |
From: | dds@doc.ic.ac.uk (Diomidis D Spinellis) |
Newsgroups: | comp.lang.perl |
Subject: | Re: dbm problems/questions (msdos-perl). |
Date: | 15 Sep 1992 14:58:31 +0100 |
Organization: | Department of Computing, Imperial College, University of London, UK. |
Lines: | 17 |
Message-ID: | <194q67INN2p3@swan.doc.ic.ac.uk> |
References: | <kebsch.716557576@neurotic> |
NNTP-Posting-Host: | swan.doc.ic.ac.uk |
Summary: | 0 len files are ok in DOS dbm |
Content-Length: | 892 |
In article <kebsch.716557576@neurotic> kebsch@neurotic.sni.de (Waldemar Kebsch) writes:
>I have fetched PERL419X.ZIP from Simtel and it runs fine. Because I have
>no experience with dbm I wrote a simple example using dbmopen(), dbmclose(),
>etc.. It works fine, but the [????????.dir] file is only 0 bytes long???
[...]
>Hmm .., what's going wrong (what I am doing wrong?) ?
There is nothing wrong. The GNU-dbm library, which is what is probably
used by the Perl version you are using, stores all data in the .pag
file. The .dir file is not used. Under Unix the two files are linked
together in order to keep their timestamps synchronised. Under MS-DOS
the .dir file is just a dummy zero-length file.
Diomidis
--
Diomidis Spinellis Internet: <dds@doc.ic.ac.uk> UUCP: ...!uknet!icdoc!dds
Department of Computing, Imperial College, London SW7 #include "/dev/tty"
Newsgroup comp.lang.perl contents
Newsgroup list
Diomidis Spinellis home page
Unless otherwise expressly stated, all original material on this page created by Diomidis Spinellis is licensed under a Creative Commons Attribution-Share Alike 3.0 Greece License.