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

Re: [MacPerl] DB record size



daver@idiom.com (David Ray) writes:
>I'm still using the Perl-4 style DB functions such as dbopen() for my Perl
>DB work, and I just ran into a problem. It looks like there is a size
>limitation of the key/value data. Above a certain size, trying to set the
>DB record causes the script to return a DB error.

Hmm, can you show that problem with a test program? I just tried a 300K
record and it seemed to work. There is no built in limit.

>1) Is there a way I can change the default size, or increase the max size,
>of the data element of a DB file and still use the Perl-4 style dbmopen()
>type calls?

No... hmm, actually probably yes. You just do the same as you would have
with tie.

>I saw an old posting from Matthias that said the following would work:
>
>use DB_File;
>$DB_HASH{"bsize"} = 65536; # Or whatever you want
>
>But I tried that and the is no module called DB_File.pm. The other DB
>modules I found had nothing documented about this feature.

Hmm, can anyone confirm this? I'm prettty sure it was included.

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "One fine day in my odd past..." -- Pixies, _Planet of Sound_