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

Re: [MacPerl] DB_File File Size



Dear Richard,

> 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 ;

The one thing present in your code, that wasn't present in mine, is the 
$DB_BTREE attribute after the permissions in the TIE statement. I inserted 
$DB_BTREE in my original code, and the DB file size shrunk from 2.5MB to 120k-- 
much more reasonable!

Do you know what the $DB_BTREE attribute does, and whether that's portable 
between UNIX and the MacOS?

Regards,

    -- Matt
     
Matt Henderson   |   matt@exponet.net   |    www.exponet.net
                 .                      .    
E x p o n e t   M e d i a  T e c h n o l o g i e s   G m b H
Full-Service Web Development & Engineering Services Provider




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