⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gdbm_file.pm

📁 UNIX下perl实现代码
💻 PM
字号:
# GDBM_File.pm -- Perl 5 interface to GNU gdbm library.=head1 NAMEGDBM_File - Perl5 access to the gdbm library.=head1 SYNOPSIS    use GDBM_File ;    tie %hash, 'GDBM_File', $filename, &GDBM_WRCREAT, 0640;    # Use the %hash array.    untie %hash ;=head1 DESCRIPTIONB<GDBM_File> is a module which allows Perl programs to make use of thefacilities provided by the GNU gdbm library.  If you intend to use thismodule you should really have a copy of the gdbm manualpage at hand.Most of the libgdbm.a functions are available through the GDBM_Fileinterface.=head1 AVAILABILITYGdbm is available from any GNU archive.  The master site isC<prep.ai.mit.edu>, but your are strongly urged to use one of the manymirrors.   You can obtain a list of mirror sites by issuing thecommand	C<finger fsf@prep.ai.mit.edu>.=head1 BUGSThe available functions and the gdbm/perl interface need to be documented.=head1 SEE ALSOL<perl(1)>, L<DB_File(3)>, L<perldbmfilter>. =cutpackage GDBM_File;use strict;use warnings;our($VERSION, @ISA, @EXPORT, $AUTOLOAD);require Carp;require Tie::Hash;require Exporter;use AutoLoader;use XSLoader ();@ISA = qw(Tie::Hash Exporter);@EXPORT = qw(	GDBM_CACHESIZE	GDBM_FAST	GDBM_INSERT	GDBM_NEWDB	GDBM_NOLOCK	GDBM_READER	GDBM_REPLACE	GDBM_WRCREAT	GDBM_WRITER);$VERSION = "1.05";sub AUTOLOAD {    my($constname);    ($constname = $AUTOLOAD) =~ s/.*:://;    my $val = constant($constname, @_ ? $_[0] : 0);    if ($! != 0) {	if ($! =~ /Invalid/ || $!{EINVAL}) {	    $AutoLoader::AUTOLOAD = $AUTOLOAD;	    goto &AutoLoader::AUTOLOAD;	}	else {	    Carp::croak("Your vendor has not defined GDBM_File macro $constname, used");	}    }    eval "sub $AUTOLOAD { $val }";    goto &$AUTOLOAD;}XSLoader::load 'GDBM_File', $VERSION;# Preloaded methods go here.  Autoload methods go after __END__, and are# processed by the autosplit program.1;__END__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -