I have a perl script (look for create.pl down) that simply creates a db file. And then another read.pl that reads it. I have no problem in creating, but when I want to read the hash, the first key is retrieved fine; but the second key can't. please help. db looks like this: {TERM , DOCUMENT_NUMBER} -> VALUE

The problem is that TERM is shown but the next key which is DOCUMENT_NUMBER is not correct (always returns 0).