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

Re: [MacPerl] DB_File broken



At 16.37 98.01.13, Georg_Bauer@muensterland.org wrote:
>And if NDBM is only a wrapper for DB: why are there two extensions in
>MacPPC:auto?

They are two different modules with two different libraries, but the
underlying routines to access the databases are the same, so the databases
should be compatible.

This works fine for me:

#!perl -wl
use DB_File;
use NDBM_File;
tie(%x, 'DB_File', 'mydb3', O_RDWR|O_CREAT, 0644, $DB_HASH) || die $!;
$x{a} = 'z';
untie(%x);

tie(%y, 'NDBM_File', 'mydb3', O_RDWR|O_CREAT, 0644) || die $!;
print $y{a};
untie(%y);

prints 'z'.

>> I also know that 5.1.6 fixed a bug in DB/NDBM.
>
>Hmm. I only use 5.1.5, not the newer versions, because there were too
>much problem reports (and version changes ;-) ). Ok, I will look into
>5.1.8. If the problem persists, I will try to build some reproducable
>results and test-script, if possible.

There really were few serious problems; the main reason for the many
releases was the upcoming CD-ROM.

But yes, I can see how upgrading that often would not appeal to someone.  :-)

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch