Does anyone know how to read a dbm file. I tried this, but in vain:

$db = 'test.dbm';       

dbmopen(%DATA, $db, 0644) or die "Can't open DB_File $db : $!\n";

while(($key,$values) = each(%DATA)) {

        print "$key has value of $value\n";

}

I do not get any data back. When I look at the file, it has some funny
characters!
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

Reply via email to