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

[MacPerl] Re: MLDBM



At 12.47 -0500 1998.11.06, Kevin Newman wrote:
>Hey Chris,
>
>Sorry to bother you outside of the mailing list about this,
>
>>> You can use MLDBM (which also works out of the box with MacPerl)
>
>but what does 'out of the box' mean? I've recently tried to use MLDBM
>with MacPerl and it didn't work, so I've been forced to use it on Unix
>(no problem). I'd love to be able to use it on Mac.
>
>Does 'out of the box' mean I use it like any other compatible module? Or
>that I have to recompile the whole shebang?

I guess MLDBM is kinda broken.  I forgot I had changed some things.

    http://www.connect.net/gbarr/cpan-test/by-dist/MLDBM.html

First, change a line in MLDBM.pm to read:

$MLDBM::UseDB = ($^O eq 'MacPerl' ? 'DB_File' : "SDBM_File") unless
    $MLDBM::UseDB;

Then, for the tests, change "SDBM_File" to "DB_File".  Finally, in
storable.t, untie %o before the second tie %o.  Then it all works.
Storable is on my web site (though I have heard it does not work on 68K
Macs) and FreezeThaw DOES work with no modifications on MacPerl.  Of
course, Data::Dumper works without modification on MacPerl, or for the XS
version, you can get it from my site.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

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