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
23 Unlike Perl's built-in hashes, it is not safe to C<delete> the current
24 item from a GDBM_File tied hash while iterating over it with C<each>.
25 This is a limitation of the gdbm library.
29 gdbm is available from any GNU archive. The master site is
30 C<ftp.gnu.org>, but you are strongly urged to use one of the many
31 mirrors. You can obtain a list of mirror sites from
32 L<http://www.gnu.org/order/ftp.html>.
34 =head1 SECURITY AND PORTABILITY
36 B<Do not accept GDBM files from untrusted sources.>
38 GDBM files are not portable across platforms.
40 The GDBM documentation doesn't imply that files from untrusted sources
41 can be safely used with C<libgdbm>.
43 A maliciously crafted file might cause perl to crash or even expose a
44 security vulnerability.
48 The available functions and the gdbm/perl interface need to be documented.
50 The GDBM error number and error message interface needs to be added.
54 L<perl(1)>, L<DB_File(3)>, L<perldbmfilter>.
62 our($VERSION, @ISA, @EXPORT);
68 @ISA = qw(Tie::Hash Exporter);
87 # This module isn't dual life, so no need for dev version numbers.