home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!cam-cl!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).
- Summary: 0 len files are ok in DOS dbm
- Message-ID: <194q67INN2p3@swan.doc.ic.ac.uk>
- Date: 15 Sep 92 13:58:31 GMT
- References: <kebsch.716557576@neurotic>
- Organization: Department of Computing, Imperial College, University of London, UK.
- Lines: 17
- NNTP-Posting-Host: swan.doc.ic.ac.uk
-
- 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"
-