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
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Submit yourselves therefore to God. Resist the devil, 
      and he will flee from you."        James 4:7 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to