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

Re: [MacPerl] Quick DB_File questions



What version of MacPerl are you using?

I can create multiple DBM files and use them with MacPerl 5.1.4r4 and the following:

#!perl -wl
use DB_File;
tie %x, 'DB_File', 'x', O_RDWR|O_CREAT, 0777 || die $!;
tie %y, 'DB_File', 'y', O_RDWR|O_CREAT, 0777 || die $!;
$x{$0}++;
$y{$0}++;
print $x{$0};
print $y{$0};
untie %x;
untie %y;

--
Chris Nandor             pudge@pobox.com             http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==            MacPerl:  Programming for the Rest of Us            ==#
#==    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