home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


7.2.34 GDBM_File - Tied Access to GDBM Library

use GDBM_File;

tie (%hash, "GDBM_File", $filename, &GDBM_WRCREAT, 0644);
# read/writes of %hash are now read/writes of $filename
untie %hash;

GDBM_File is a module that allows Perl programs to make use of the facilities provided by the GNU gdbm library. If you intend to use this module, you should have a copy of the gdbm (3) manpage at hand.

Most of the libgdbm.a functions are available as methods of the GDBM_File interface.

7.2.34.1 Availability

gdbm is available from any GNU archive. The master site is prep.ai.mit.edu, but you are strongly urged to use one of the many mirrors. You can obtain a list of mirror sites by issuing the command, finger fsf@prep.ai.mit.edu . A copy is also stored on CPAN:

http://www.perl.com/CPAN/src/misc/gdbm-1.7.3.tar.gz

7.2.34.2 See also

DB_File library module.


Previous: 7.2.33 FileHandle - Supply Object Methods for Filehandles Programming Perl Next: 7.2.35 Getopt::Long - Extended Processing of Command-Line Options
7.2.33 FileHandle - Supply Object Methods for Filehandles Book Index 7.2.35 Getopt::Long - Extended Processing of Command-Line Options