in reply to Re: Re: NDBM_File won't store data
in thread NDBM_File won't store data

I'm not sure what you mean by 'the report function' or 'the flat-file', are you referring to another piece of code ? To confirm the problem is in the database, run your test code against the database thus ;
#read tie %test, "NDBM_File", 'mtime', O_RDWR|O_EXCL, 0644; foreach (keys %test) { print "$_: $test{$_}\n"; } untie %test;
If this shows only keys, try it with the other database 'type'.
#read tie %test, "NDBM_File", 'type', O_RDWR|O_EXCL, 0644; foreach (keys %test) { print "$_: $test{$_}\n"; } untie %test;
If the 'type' db is storing strings OK but the 'mtime' db is not, I give up !
poj

Replies are listed 'Best First'.
Re: Re: Re: Re: NDBM_File won't store data
by HamNRye (Monk) on Aug 29, 2003 at 21:52 UTC

    As wierd as this may sound, never use mtime with NDBM_File. I did a replace and replaced every instance of "mtime" with "index", and the program works fine.