in reply to dbmopen not opening a db file
As for using tie, it is a small change. Change the dbmopen line to:
and if there is a dbmclose line, just call untie.use DB_File; tie %TEST, 'DB_File', '/home/lab/access.db';
The change is tiny. The advantage is that you guarantee that you aren't creating with one dbm and then trying to read with another later. If what you've said is correct, though, it likely won't help you. But you should try to use tie and try out each of NDBM_File, SDBM_File and ODBM_file to see if it is in one of those formats. (Type perldoc X to see if X is installed and to find out how to try using it.)
If all else fails, then chalk this up to lessons learned - always have a plaintext backup that you can restore critical data from.
|
|---|