Re: using tie on a hash of anonymous arrays
From: Rob Benton <[EMAIL PROTECTED]> > Is this possible? I know what I have below won't work. > > == > use DB_File; > > my %hash; > tie(%hash, "DB_File", undef, O_RDWR|O_CREAT, 0640, $DB_BTREE) or die > $hash{1} = [ 2, 3, 4
using tie on a hash of anonymous arrays
Is this possible? I know what I have below won't work. == use DB_File; my %hash; tie(%hash, "DB_File", undef, O_RDWR|O_CREAT, 0640, $DB_BTREE) or die $hash{1} = [ 2, 3, 4 ]; print "@{$hash{1}}\n"; untie(%newhash);