DB_File support

Posted by halj78727 on 2006-11-26 07:31

I just installed ActivePerl and am trying to use "tie" to setup a hash table which will be uploaded to another system running another version of Perl (still 5.8 though) on another OS.

ActivePerl seems to only support SDBM_File. I don't see DB_File, which I would prefer to use. Is this correct?

With SDBM_File I get "errno 9" when setting the first key/value pair. No file gets created. That's the second question. What is errno 9?

The code looks like:

use SDBM_File;
use Fcntl;

tie(%idx,"SDBM_File", "$LocIGMDir/$DB/$DB", O_CREAT|O_RDWR, 0644);