1 # GDBM_File.pm -- Perl 5 interface to GNU gdbm library.
5 GDBM_File - Perl5 access to the gdbm library.
10 tie %hash, 'GDBM_File', $filename, &GDBM_WRCREAT, 0640;
11 # Use the %hash array.
16 B<GDBM_File> is a module which allows Perl programs to make use of the
17 facilities provided by the GNU gdbm library. If you intend to use this
18 module you should really have a copy of the gdbm manualpage at hand.
20 Most of the libgdbm.a functions are available through the GDBM_File
25 gdbm is available from any GNU archive. The master site is
26 C<ftp.gnu.org>, but you are strongly urged to use one of the many
27 mirrors. You can obtain a list of mirror sites from
28 http://www.gnu.org/order/ftp.html.
32 The available functions and the gdbm/perl interface need to be documented.
34 The GDBM error number and error message interface needs to be added.
38 L<perl(1)>, L<DB_File(3)>, L<perldbmfilter>.
46 our($VERSION, @ISA, @EXPORT, $AUTOLOAD);
52 @ISA = qw(Tie::Hash Exporter);
75 ($constname = $AUTOLOAD) =~ s/.*:://;
76 my ($error, $val) = constant($constname);
77 Carp::croak $error if $error;
79 *{$AUTOLOAD} = sub { $val };
83 XSLoader::load 'GDBM_File', $VERSION;