in reply to Re: Can't seem to read DBM
in thread Can't seem to read DBM

I have checked for the existence of the key. I've also tried it in both upper and lower case and I've tried numerous keys. I've also tried copying a key directly out of the DB file and into the code to eliminate any possibility of misspelling.

Replies are listed 'Best First'.
Re^3: Can't seem to read DBM
by roboticus (Chancellor) on Sep 11, 2007 at 14:19 UTC
    dirtdart:

    You don't have any trailing spaces on your keys, do you? You might try modifying your dump to something like:

    while(my ($key, $value) = each(%names)) { print ".$key.\t".$names{$key}."\n"; }
    or use Data::Dumper or some such...

    ...roboticus