[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] DB_File File Size





4/26/99, Matt Henderson wrote:

  >    my $name = ":my_db";
  >    my %hash = ();
  >
  >    tie(%hash, 'DB_File', $name.".dbm", O_RDWR|O_CREAT, 0644);


Dear Matt,

The corresponding code which worked for me, using DB_FILE, and which led to
sensible file sizes, was:

  >	$Entries     = {} ;
  >	$EntryFile   = "whatever" ;
  >     tie %$Entries, "DB_File", $EntryFile,  O_RDWR|O_CREAT, 0640,
$DB_BTREE ;

That's the limit of my experience, so I hope it is of some use.

all the best,
rkm


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org