X7ROOT File Manager
Current Path:
/usr/share/perl5
usr
/
share
/
perl5
/
ðŸ“
..
📄
AnyDBM_File.pm
(2.56 KB)
ðŸ“
Attribute
📄
AutoLoader.pm
(15.43 KB)
📄
AutoSplit.pm
(19.18 KB)
ðŸ“
B
📄
Benchmark.pm
(30.3 KB)
📄
CORE.pod
(3.11 KB)
ðŸ“
CPAN
ðŸ“
Class
ðŸ“
Compress
ðŸ“
Config
📄
DB.pm
(18.48 KB)
ðŸ“
DBM_Filter
📄
DBM_Filter.pm
(14.05 KB)
ðŸ“
Devel
📄
DirHandle.pm
(1.52 KB)
📄
Dumpvalue.pm
(17.14 KB)
📄
English.pm
(4.65 KB)
ðŸ“
ExtUtils
ðŸ“
File
📄
FileCache.pm
(5.44 KB)
📄
FileHandle.pm
(6.63 KB)
📄
FindBin.pm
(4.45 KB)
ðŸ“
Getopt
ðŸ“
I18N
ðŸ“
IO
ðŸ“
IPC
📄
Internals.pod
(2.52 KB)
ðŸ“
Locale
ðŸ“
Math
ðŸ“
Memoize
📄
Memoize.pm
(35.34 KB)
ðŸ“
Module
📄
NEXT.pm
(18.4 KB)
ðŸ“
Net
📄
PerlIO.pm
(10.21 KB)
ðŸ“
Pod
📄
Safe.pm
(24.49 KB)
ðŸ“
Search
📄
SelectSaver.pm
(1.05 KB)
📄
SelfLoader.pm
(17.28 KB)
📄
Symbol.pm
(4.69 KB)
ðŸ“
Term
📄
Test.pm
(29.35 KB)
ðŸ“
Text
ðŸ“
Thread
📄
Thread.pm
(8.09 KB)
ðŸ“
Tie
ðŸ“
Time
📄
UNIVERSAL.pm
(6.44 KB)
ðŸ“
URI
📄
URI.pm
(33.97 KB)
ðŸ“
Unicode
ðŸ“
User
📄
XSLoader.pm
(11 KB)
📄
_charnames.pm
(32.39 KB)
📄
autouse.pm
(4.14 KB)
📄
base.pm
(10.72 KB)
📄
blib.pm
(2.04 KB)
📄
bytes.pm
(3.67 KB)
📄
bytes_heavy.pl
(758 B)
📄
charnames.pm
(20.38 KB)
📄
deprecate.pm
(3.01 KB)
📄
diagnostics.pm
(18.59 KB)
📄
dumpvar.pl
(15.19 KB)
ðŸ“
encoding
📄
feature.pm
(16.68 KB)
📄
fields.pm
(9.27 KB)
📄
filetest.pm
(3.91 KB)
📄
if.pm
(3.26 KB)
📄
integer.pm
(3.18 KB)
📄
less.pm
(3.13 KB)
📄
locale.pm
(4.74 KB)
📄
meta_notation.pm
(2.07 KB)
📄
open.pm
(7.83 KB)
ðŸ“
overload
📄
overload.pm
(52.06 KB)
📄
overloading.pm
(1.77 KB)
📄
perl5db.pl
(309 KB)
ðŸ“
pod
📄
sigtrap.pm
(7.43 KB)
📄
sort.pm
(5.94 KB)
📄
strict.pm
(4.63 KB)
📄
subs.pm
(848 B)
ðŸ“
unicore
📄
utf8.pm
(8.9 KB)
📄
utf8_heavy.pl
(30.87 KB)
📄
vars.pm
(2.36 KB)
ðŸ“
vendor_perl
📄
vmsish.pm
(4.21 KB)
ðŸ“
warnings
📄
warnings.pm
(43.71 KB)
Editing: AnyDBM_File.pm
package AnyDBM_File; use warnings; use strict; use 5.006_001; our $VERSION = '1.01'; our @ISA = qw(NDBM_File DB_File GDBM_File SDBM_File ODBM_File) unless @ISA; my $mod; for $mod (@ISA) { if (eval "require $mod") { @ISA = ($mod); # if we leave @ISA alone, warnings abound return 1; } } die "No DBM package was successfully found or installed"; __END__ =head1 NAME AnyDBM_File - provide framework for multiple DBMs NDBM_File, DB_File, GDBM_File, SDBM_File, ODBM_File - various DBM implementations =head1 SYNOPSIS use AnyDBM_File; =head1 DESCRIPTION This module is a "pure virtual base class"--it has nothing of its own. It's just there to inherit from one of the various DBM packages. It prefers ndbm for compatibility reasons with Perl 4, then Berkeley DB (See L<DB_File>), GDBM, SDBM (which is always there--it comes with Perl), and finally ODBM. This way old programs that used to use NDBM via dbmopen() can still do so, but new ones can reorder @ISA: BEGIN { @AnyDBM_File::ISA = qw(DB_File GDBM_File NDBM_File) } use AnyDBM_File; Having multiple DBM implementations makes it trivial to copy database formats: use Fcntl; use NDBM_File; use DB_File; tie %newhash, 'DB_File', $new_filename, O_CREAT|O_RDWR; tie %oldhash, 'NDBM_File', $old_filename, 1, 0; %newhash = %oldhash; =head2 DBM Comparisons Here's a partial table of features the different packages offer: odbm ndbm sdbm gdbm bsd-db ---- ---- ---- ---- ------ Linkage comes w/ perl yes yes yes yes yes Src comes w/ perl no no yes no no Comes w/ many unix os yes yes[0] no no no Builds ok on !unix ? ? yes yes ? Code Size ? ? small big big Database Size ? ? small big? ok[1] Speed ? ? slow ok fast FTPable no no yes yes yes Easy to build N/A N/A yes yes ok[2] Size limits 1k 4k 1k[3] none none Byte-order independent no no no no yes Licensing restrictions ? ? no yes no =over 4 =item [0] on mixed universe machines, may be in the bsd compat library, which is often shunned. =item [1] Can be trimmed if you compile for one access method. =item [2] See L<DB_File>. Requires symbolic links. =item [3] By default, but can be redefined. =back =head1 SEE ALSO dbm(3), ndbm(3), DB_File(3), L<perldbmfilter> =cut
Upload File
Create Folder