Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and the result is:$DB_BTREE->{'flags'} = R_DUP ; $x = tie %dictf, "DB_File", "f.db", O_RDWR|O_CREAT, 0666, $DB_BTREE + or die "Cannot open file f.db: $!\n"; my $number = keys %dictf; print "$number\n"; my $number = keys %dictf; print "$number\n"; $key = $value = 0 ; for ($status = $x->seq($key, $value, R_FIRST) ; $status == 0 ; $status = $x->seq($key, $value, R_NEXT) ) { print "$key -> $value\n"; }
while I have:0
as my database. What is wrong in my code?> ls -lh *.db -rw-r--r-- 1 xxxxx xxx 4.2G Dec 3 14:03 f.db
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: re-tie the previous db
by flexvault (Monsignor) on Dec 04, 2011 at 13:34 UTC | |
by Anonymous Monk on Dec 04, 2011 at 13:49 UTC | |
|
Re: re-tie the previous db
by Anonymous Monk on Dec 04, 2011 at 08:12 UTC | |
by CountZero (Bishop) on Dec 04, 2011 at 10:11 UTC | |
by Anonymous Monk on Dec 04, 2011 at 10:21 UTC | |
by Anonymous Monk on Dec 04, 2011 at 09:03 UTC | |
by Anonymous Monk on Dec 04, 2011 at 09:15 UTC | |
|
Re: re-tie the previous db
by Anonymous Monk on Dec 04, 2011 at 15:38 UTC |