Help for this page

Select Code to Download


  1. or download this
    $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";
    ...
    $status == 0 ;
    $status = $x->seq($key, $value, R_NEXT) )
    { print "$key -> $value\n"; }
    
  2. or download this
    $DB_BTREE->{'flags'} = R_DUP ;
    my $file="f.db";
    my $x = tie %h, "DB_File", $file, O_RDWR|O_CREAT, 0666, $DB_BTREE or d
    +ie "Cannot open file $file: $!\n";