in reply to Can't seem to read DBM

The simplest explaination might be that there is no key drew in the hash, but others are.

Replies are listed 'Best First'.
Re^2: Can't seem to read DBM
by dirtdart (Beadle) on Sep 11, 2007 at 12:17 UTC
    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.
      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