1 # GDBM_File.pm -- Perl 5 interface to GNU gdbm library.
4 GDBM_File - Perl5 access to the gdbm library.
9 tie %hash, GDBM_File, $filename, &GDBM_WRCREAT, 0640);
10 # Use the %hash array.
15 B<GDBM_File> is a module which allows Perl programs to make use of the
16 facilities provided by the GNU gdbm library. If you intend to use this
17 module you should really have a copy of the gdbm manualpage at hand.
19 Most of the libgdbm.a functions are available through the GDBM_File
24 Gdbm is available from any GNU archive. The master site is
25 C<prep.ai.mit.edu>, but your are strongly urged to use one of the many
26 mirrors. You can obtain a list of mirror sites by issuing the
27 command C<finger fsf@prep.ai.mit.edu>.
31 The available functions and the gdbm/perl interface need to be documented.
35 L<perl(1)>, L<DB_File(3)>.
46 @ISA = qw(TieHash Exporter DynaLoader);
60 ($constname = $AUTOLOAD) =~ s/.*:://;
61 $val = constant($constname, @_ ? $_[0] : 0);
63 if ($! =~ /Invalid/) {
64 $AutoLoader::AUTOLOAD = $AUTOLOAD;
65 goto &AutoLoader::AUTOLOAD;
68 Carp::croak("Your vendor has not defined GDBM_File macro $constname, used");
71 eval "sub $AUTOLOAD { $val }";
77 # Preloaded methods go here. Autoload methods go after __END__, and are
78 # processed by the autosplit program.