vennirajan has asked for the wisdom of the Perl Monks concerning the following question:
I have a problem with my berkeley db file. I am trying to tie the berkeley db file with the perl hash. But i am unable to tie, i can't even getting the error messages also.Here is my code,
my $file = "/home/doc57/data/administrators.db"; tie( %hash, 'DB_File::Lock', $file, O_RDONLY, 0666, $DB_TREE, 'read' +) || die ( "db file open error ..:$!:");
But, i can able to tie another files using the same options. Moreover the same code works for the same file in different host.
My current system is redhat 7.1. The other host where it is working is RH enterprise 4.0.
-rw-r--r-- 1 doc57 Group1 8192 Sep 29 11:46 /home/doc57/dat +a/administrators.db
|
|---|