Johann,
I have had the same problem. Check, I bet the versions of Berkley DB are different.
Chad
Johann Spies wrote:
We have a situation that we need to open a dbm-file but cannot do so using perl version 5.8.4-2 on Debian Sarge. The following script fails, but the same script and dbm-file works on Woody with perl 5.6:
#!/usr/bin/perl -w
use Fcntl; use DB_File; #use NDBM_File; use DBI;
$dbfile = "/tmp/globaldb.db";
tie(%hash,"DB_File",$dbfile,O_RDONLY) || die "Cannot open $dbfile [$!]";
untie %hash;
Is there a way to read that file with perl 5.8?
Regards Johann
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>