8.40 DB_FileTies a Perl hash to one of the Berkeley DB database types and lets you use functions provided in the DB API: The types are:[$X =] tie %hash, "DB_File", $filename [, $flags, $mode, $DB_HASH]; [$X =] tie %hash, "DB_File", $filename, $flags, $mode, $DB_BTREE; [$X =] tie @array, "DB_File", $filename, $flags, $mode, $DB_RECNO;
After you've you can access the Berkeley DB API functions:$db = tie %hash, "DB_File", "filename"; All the functions defined in the dbopen(3) manpage are available except$db->put($key, $value, R_NOOVERWRITE); # invoke the DB "put" function
close
and
dbopen
itself.
The constants defined in the
dbopen
manpage are also available.
Here are the functions available (the comments note only the differences from the equivalent C function): |
|