Problem with tie and GDBM
Posted on 1997-05-21
I need to use gdbm databases with Perl but get the error:
"Can't locate object method "TIEHASH" via package "GDBM_FILE" " at
my_first_db.pl line 5."
when using this code:
#! /bin/perl -w
tie(%db, "GDBM_FILE", "my_db", &GDBM_WRCREAT, 0644);
Is it a bug in Perl5.003, or is there a workaround?
I am using Perl5.003 with the gdbm-1.7.3 library statically linked, both
compiled with gcc-220.127.116.11 on a Sun ULTRA running Solaris2.5.