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

Re: [MacPerl] DBM (fwd)



At 9.53 7/10/97, Mark Manning/Muniz Eng. wrote:
>According to Wade Williams:
>> Ok, dumb question.
>>
>> Is there any easy way to do DBM functions on the Mac?
>
>As Brian said - yes.  Also, you can spin your own DBM
>functions through the use of SYSOPEN, SYSREAD, SYSWRITE,
>and SYSSEEK.  You should also use the:
>
>        use FileHandle;
>
>command when using them.
>
>(Oops - and the CLOSE statement too I guess.  :-) )

Best way in Perl5 (and MacPerl5) is to use the DB_File module, along with
the tie() statement.  See the Blue Camel for more details.

--
Chris Nandor             pudge@pobox.com             http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])



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