Section: Perl Programmers Reference Guide (3perl)
GDBM_File - Perl5 access to the gdbm library.
use GDBM_File ;
tie %hash, 'GDBM_File', $filename, &GDBM_WRCREAT, 0640;
# Use the %hash array.
untie %hash ;
is a module which allows Perl programs to make use of the
facilities provided by the GNU
gdbm library. If you intend to use this
module you should really have a copy of the gdbm manualpage at hand.
Most of the libgdbm.a functions are available through the GDBM_File
Unlike Perl's built-in hashes, it is not safe to "delete" the current
item from a GDBM_File tied hash while iterating over it with "each".
This is a limitation of the gdbm library.
gdbm is available from any GNU
archive. The master site is
, but you are strongly urged to use one of the many
mirrors. You can obtain a list of mirror sites from
The available functions and the gdbm/perl interface need to be documented.
The GDBM error number and error message interface needs to be added.