System
:
Linux server1.ontime-gulf.com 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Software
:
Apache
Server
:
162.0.230.206
Domains
:
40 Domain
Permission
:
[
drwxr-xr-x
]
:
/
usr
/
share
/
perl5
/
pod
/
216.73.216.49
Select
Submit
Home
Add User
Mailer
About
DBName
DBUser
DBPass
DBHost
WpUser
WpPass
Input e-mail
ACUPOFTEA for mail.ontime-ae.com made by tabagkayu.
Folder Name
File Name
File Content
File
perldbmfilter.pod
=head1 NAME perldbmfilter - Perl DBM Filters =head1 SYNOPSIS $db = tie %hash, 'DBM', ... $old_filter = $db->filter_store_key ( sub { ... } ); $old_filter = $db->filter_store_value( sub { ... } ); $old_filter = $db->filter_fetch_key ( sub { ... } ); $old_filter = $db->filter_fetch_value( sub { ... } ); =head1 DESCRIPTION The four C<filter_*> methods shown above are available in all the DBM modules that ship with Perl, namely DB_File, GDBM_File, NDBM_File, ODBM_File and SDBM_File. Each of the methods works identically, and is used to install (or uninstall) a single DBM Filter. The only difference between them is the place that the filter is installed. To summarise: =over 5 =item B<filter_store_key> If a filter has been installed with this method, it will be invoked every time you write a key to a DBM database. =item B<filter_store_value> If a filter has been installed with this method, it will be invoked every time you write a value to a DBM database. =item B<filter_fetch_key> If a filter has been installed with this method, it will be invoked every time you read a key from a DBM database. =item B<filter_fetch_value> If a filter has been installed with this method, it will be invoked every time you read a value from a DBM database. =back You can use any combination of the methods from none to all four. All filter methods return the existing filter, if present, or C<undef> if not. To delete a filter pass C<undef> to it. =head2 The Filter When each filter is called by Perl, a local copy of C<$_> will contain the key or value to be filtered. Filtering is achieved by modifying the contents of C<$_>. The return code from the filter is ignored. =head2 An Example: the NULL termination problem. DBM Filters are useful for a class of problems where you I<always> want to make the same transformation to all keys, all values or both. For example, consider the following scenario. You have a DBM database that you need to share with a third-party C application. The C application assumes that I<all> keys and values are NULL terminated. Unfortunately when Perl writes to DBM databases it doesn't use NULL termination, so your Perl application will have to manage NULL termination itself. When you write to the database you will have to use something like this: $hash{"$key\0"} = "$value\0"; Similarly the NULL needs to be taken into account when you are considering the length of existing keys/values. It would be much better if you could ignore the NULL terminations issue in the main application code and have a mechanism that automatically added the terminating NULL to all keys and values whenever you write to the database and have them removed when you read from the database. As I'm sure you have already guessed, this is a problem that DBM Filters can fix very easily. use strict; use warnings; use SDBM_File; use Fcntl; my %hash; my $filename = "filt"; unlink $filename; my $db = tie(%hash, 'SDBM_File', $filename, O_RDWR|O_CREAT, 0640) or die "Cannot open $filename: $!\n"; # Install DBM Filters $db->filter_fetch_key ( sub { s/\0$// } ); $db->filter_store_key ( sub { $_ .= "\0" } ); $db->filter_fetch_value( sub { no warnings 'uninitialized'; s/\0$// } ); $db->filter_store_value( sub { $_ .= "\0" } ); $hash{"abc"} = "def"; my $a = $hash{"ABC"}; # ... undef $db; untie %hash; The code above uses SDBM_File, but it will work with any of the DBM modules. Hopefully the contents of each of the filters should be self-explanatory. Both "fetch" filters remove the terminating NULL, and both "store" filters add a terminating NULL. =head2 Another Example: Key is a C int. Here is another real-life example. By default, whenever Perl writes to a DBM database it always writes the key and value as strings. So when you use this: $hash{12345} = "something"; the key 12345 will get stored in the DBM database as the 5 byte string "12345". If you actually want the key to be stored in the DBM database as a C int, you will have to use C<pack> when writing, and C<unpack> when reading. Here is a DBM Filter that does it: use strict; use warnings; use DB_File; my %hash; my $filename = "filt"; unlink $filename; my $db = tie %hash, 'DB_File', $filename, O_CREAT|O_RDWR, 0666, $DB_HASH or die "Cannot open $filename: $!\n"; $db->filter_fetch_key ( sub { $_ = unpack("i", $_) } ); $db->filter_store_key ( sub { $_ = pack ("i", $_) } ); $hash{123} = "def"; # ... undef $db; untie %hash; The code above uses DB_File, but again it will work with any of the DBM modules. This time only two filters have been used; we only need to manipulate the contents of the key, so it wasn't necessary to install any value filters. =head1 SEE ALSO L<DB_File>, L<GDBM_File>, L<NDBM_File>, L<ODBM_File> and L<SDBM_File>. =head1 AUTHOR Paul Marquess
New name for
Are you sure will delete
?
New date for
New perm for
Name
Type
Size
Permission
Last Modified
Actions
.
DIR
-
drwxr-xr-x
2025-07-29 10:57:25
..
DIR
-
drwxr-xr-x
2025-07-29 10:57:25
perl.pod
text/plain
15.89 KB
-rw-r--r--
2025-07-28 08:07:09
perl5004delta.pod
text/plain
54.92 KB
-rw-r--r--
2025-07-28 08:07:09
perl5005delta.pod
text/plain
33.48 KB
-rw-r--r--
2025-07-28 08:07:09
perl5100delta.pod
text/plain
54.23 KB
-rw-r--r--
2025-07-28 08:07:09
perl5101delta.pod
text/plain
42.86 KB
-rw-r--r--
2025-07-28 08:07:09
perl5120delta.pod
text/plain
87.18 KB
-rw-r--r--
2025-07-28 08:07:09
perl5121delta.pod
text/plain
9.9 KB
-rw-r--r--
2025-07-28 08:07:09
perl5122delta.pod
text/plain
9.38 KB
-rw-r--r--
2025-07-28 08:07:09
perl5123delta.pod
text/plain
4 KB
-rw-r--r--
2025-07-28 08:07:09
perl5124delta.pod
text/plain
3.59 KB
-rw-r--r--
2025-07-28 08:07:09
perl5125delta.pod
text/plain
7.5 KB
-rw-r--r--
2025-07-28 08:07:09
perl5140delta.pod
text/plain
140.94 KB
-rw-r--r--
2025-07-28 08:07:09
perl5141delta.pod
text/plain
7.78 KB
-rw-r--r--
2025-07-28 08:07:09
perl5142delta.pod
text/plain
6.73 KB
-rw-r--r--
2025-07-28 08:07:09
perl5143delta.pod
text/plain
7.58 KB
-rw-r--r--
2025-07-28 08:07:09
perl5144delta.pod
text/plain
6.18 KB
-rw-r--r--
2025-07-28 08:07:09
perl5160delta.pod
text/plain
130.52 KB
-rw-r--r--
2025-07-28 08:07:09
perl5161delta.pod
text/plain
6 KB
-rw-r--r--
2025-07-28 08:07:09
perl5162delta.pod
text/plain
3.51 KB
-rw-r--r--
2025-07-28 08:07:09
perl5163delta.pod
text/plain
3.99 KB
-rw-r--r--
2025-07-28 08:07:09
perl5180delta.pod
text/plain
116.63 KB
-rw-r--r--
2025-07-28 08:07:09
perl5181delta.pod
text/plain
6.44 KB
-rw-r--r--
2025-07-28 08:07:09
perl5182delta.pod
text/plain
5.21 KB
-rw-r--r--
2025-07-28 08:07:09
perl5184delta.pod
text/plain
4.53 KB
-rw-r--r--
2025-07-28 08:07:09
perl5200delta.pod
text/plain
112.99 KB
-rw-r--r--
2025-07-28 08:07:09
perl5201delta.pod
text/plain
10.64 KB
-rw-r--r--
2025-07-28 08:07:09
perl5202delta.pod
text/plain
12.22 KB
-rw-r--r--
2025-07-28 08:07:09
perl5203delta.pod
text/plain
9.17 KB
-rw-r--r--
2025-07-28 08:07:09
perl5220delta.pod
text/plain
127.89 KB
-rw-r--r--
2025-07-28 08:07:09
perl5221delta.pod
text/plain
10.51 KB
-rw-r--r--
2025-07-28 08:07:09
perl5222delta.pod
text/plain
12.33 KB
-rw-r--r--
2025-07-28 08:07:09
perl5223delta.pod
text/plain
8.26 KB
-rw-r--r--
2025-07-28 08:07:09
perl5224delta.pod
text/plain
4.36 KB
-rw-r--r--
2025-07-28 08:07:09
perl5240delta.pod
text/plain
63.41 KB
-rw-r--r--
2025-07-28 08:07:09
perl5241delta.pod
text/plain
8.02 KB
-rw-r--r--
2025-07-28 08:07:09
perl5242delta.pod
text/plain
4.02 KB
-rw-r--r--
2025-07-28 08:07:09
perl5243delta.pod
text/plain
11.16 KB
-rw-r--r--
2025-07-28 08:07:09
perl5244delta.pod
text/plain
4.4 KB
-rw-r--r--
2025-07-28 08:07:09
perl5260delta.pod
text/plain
99.45 KB
-rw-r--r--
2025-07-28 08:07:09
perl5261delta.pod
text/plain
7.74 KB
-rw-r--r--
2025-07-28 08:07:09
perl5262delta.pod
text/plain
7.7 KB
-rw-r--r--
2025-07-28 08:07:09
perl5263delta.pod
text/plain
6.9 KB
-rw-r--r--
2025-07-28 08:07:09
perl5280delta.pod
text/plain
70.42 KB
-rw-r--r--
2025-07-28 08:07:09
perl561delta.pod
text/plain
121.79 KB
-rw-r--r--
2025-07-28 08:07:09
perl56delta.pod
text/plain
104.69 KB
-rw-r--r--
2025-07-28 08:07:09
perl581delta.pod
text/x-c++
37.17 KB
-rw-r--r--
2025-07-28 08:07:09
perl582delta.pod
text/plain
4.37 KB
-rw-r--r--
2025-07-28 08:07:09
perl583delta.pod
text/plain
6.19 KB
-rw-r--r--
2025-07-28 08:07:09
perl584delta.pod
text/plain
7.19 KB
-rw-r--r--
2025-07-28 08:07:09
perl585delta.pod
text/plain
5.75 KB
-rw-r--r--
2025-07-28 08:07:09
perl586delta.pod
text/plain
4.54 KB
-rw-r--r--
2025-07-28 08:07:09
perl587delta.pod
text/plain
8.16 KB
-rw-r--r--
2025-07-28 08:07:09
perl588delta.pod
text/plain
24.68 KB
-rw-r--r--
2025-07-28 08:07:09
perl589delta.pod
text/plain
52.64 KB
-rw-r--r--
2025-07-28 08:07:09
perl58delta.pod
text/plain
112.47 KB
-rw-r--r--
2025-07-28 08:07:09
perlaix.pod
text/plain
19.96 KB
-rw-r--r--
2025-07-28 08:07:09
perlamiga.pod
text/plain
5.61 KB
-rw-r--r--
2025-07-28 08:07:09
perlandroid.pod
text/plain
7.69 KB
-rw-r--r--
2025-07-28 08:07:09
perlapi.pod
text/plain
433.14 KB
-rw-r--r--
2025-07-28 08:07:09
perlapio.pod
text/plain
18.83 KB
-rw-r--r--
2025-07-28 08:07:09
perlartistic.pod
text/plain
6.85 KB
-rw-r--r--
2025-07-28 08:07:09
perlbook.pod
text/plain
8.14 KB
-rw-r--r--
2025-07-28 08:07:09
perlboot.pod
text/plain
294 B
-rw-r--r--
2025-07-28 08:07:09
perlbot.pod
text/plain
304 B
-rw-r--r--
2025-07-28 08:07:09
perlbs2000.pod
text/plain
7.87 KB
-rw-r--r--
2025-07-28 08:07:09
perlcall.pod
text/plain
55.38 KB
-rw-r--r--
2025-07-28 08:07:09
perlce.pod
text/plain
14.26 KB
-rw-r--r--
2025-07-28 08:07:09
perlcheat.pod
text/plain
4.38 KB
-rw-r--r--
2025-07-28 08:07:09
perlclib.pod
text/plain
9.39 KB
-rw-r--r--
2025-07-28 08:07:09
perlcn.pod
text/plain
4.58 KB
-rw-r--r--
2025-07-28 08:07:09
perlcommunity.pod
text/plain
7.05 KB
-rw-r--r--
2025-07-28 08:07:09
perlcygwin.pod
text/plain
26.56 KB
-rw-r--r--
2025-07-28 08:07:09
perldata.pod
text/plain
45.65 KB
-rw-r--r--
2025-07-28 08:07:09
perldbmfilter.pod
text/plain
4.86 KB
-rw-r--r--
2025-07-28 08:07:09
perldebguts.pod
text/plain
37.63 KB
-rw-r--r--
2025-07-28 08:07:09
perldebtut.pod
text/plain
21.63 KB
-rw-r--r--
2025-07-28 08:07:09
perldebug.pod
text/plain
38.34 KB
-rw-r--r--
2025-07-28 08:07:09
perldelta.pod
text/plain
6.9 KB
-rw-r--r--
2025-07-28 08:07:09
perldeprecation.pod
text/plain
17.74 KB
-rw-r--r--
2025-07-28 08:07:09
perldiag.pod
text/plain
277.9 KB
-rw-r--r--
2025-07-28 08:07:09
perldos.pod
text/plain
10.28 KB
-rw-r--r--
2025-07-28 08:07:09
perldsc.pod
text/x-c
25.01 KB
-rw-r--r--
2025-07-28 08:07:09
perldtrace.pod
text/plain
7.77 KB
-rw-r--r--
2025-07-28 08:07:09
perlebcdic.pod
text/plain
82.26 KB
-rw-r--r--
2025-07-28 08:07:09
perlembed.pod
text/x-c
36.32 KB
-rw-r--r--
2025-07-28 08:07:09
perlexperiment.pod
text/plain
7.03 KB
-rw-r--r--
2025-07-28 08:07:09
perlfork.pod
text/plain
13.04 KB
-rw-r--r--
2025-07-28 08:07:09
perlform.pod
text/plain
16.22 KB
-rw-r--r--
2025-07-28 08:07:09
perlfreebsd.pod
text/plain
1.57 KB
-rw-r--r--
2025-07-28 08:07:09
perlfunc.pod
text/plain
383.75 KB
-rw-r--r--
2025-07-28 08:07:09
perlgit.pod
text/plain
32.72 KB
-rw-r--r--
2025-07-28 08:07:09
perlgpl.pod
text/plain
13.49 KB
-rw-r--r--
2025-07-28 08:07:09
perlguts.pod
text/plain
136.06 KB
-rw-r--r--
2025-07-28 08:07:09
perlhack.pod
text/plain
39.5 KB
-rw-r--r--
2025-07-28 08:07:09
perlhacktips.pod
text/plain
54.21 KB
-rw-r--r--
2025-07-28 08:07:09
perlhacktut.pod
text/plain
6.01 KB
-rw-r--r--
2025-07-28 08:07:09
perlhaiku.pod
text/plain
1.47 KB
-rw-r--r--
2025-07-28 08:07:09
perlhist.pod
text/plain
52.29 KB
-rw-r--r--
2025-07-28 08:07:09
perlhpux.pod
text/plain
29.79 KB
-rw-r--r--
2025-07-28 08:07:09
perlhurd.pod
text/plain
1.95 KB
-rw-r--r--
2025-07-28 08:07:09
perlintern.pod
text/plain
53.29 KB
-rw-r--r--
2025-07-28 08:07:09
perlinterp.pod
text/plain
32.9 KB
-rw-r--r--
2025-07-28 08:07:09
perlintro.pod
text/x-c
21.6 KB
-rw-r--r--
2025-07-28 08:07:09
perliol.pod
text/plain
33.38 KB
-rw-r--r--
2025-07-28 08:07:09
perlipc.pod
text/plain
69.17 KB
-rw-r--r--
2025-07-28 08:07:09
perlirix.pod
text/plain
4.29 KB
-rw-r--r--
2025-07-28 08:07:09
perljp.pod
text/plain
7.34 KB
-rw-r--r--
2025-07-28 08:07:09
perlko.pod
text/plain
11.97 KB
-rw-r--r--
2025-07-28 08:07:09
perllexwarn.pod
text/plain
355 B
-rw-r--r--
2025-07-28 08:07:09
perllinux.pod
text/plain
1.45 KB
-rw-r--r--
2025-07-28 08:07:09
perllocale.pod
text/plain
67.07 KB
-rw-r--r--
2025-07-28 08:07:09
perllol.pod
text/plain
9.36 KB
-rw-r--r--
2025-07-28 08:07:09
perlmacos.pod
text/plain
1001 B
-rw-r--r--
2025-07-28 08:07:09
perlmacosx.pod
text/plain
11.78 KB
-rw-r--r--
2025-07-28 08:07:09
perlmod.pod
text/plain
25.63 KB
-rw-r--r--
2025-07-28 08:07:09
perlmodinstall.pod
text/plain
12.49 KB
-rw-r--r--
2025-07-28 08:07:09
perlmodlib.pod
text/plain
74.69 KB
-rw-r--r--
2025-07-28 08:07:09
perlmodstyle.pod
text/plain
22.05 KB
-rw-r--r--
2025-07-28 08:07:09
perlmroapi.pod
text/plain
3.14 KB
-rw-r--r--
2025-07-28 08:07:09
perlnetware.pod
text/plain
6.49 KB
-rw-r--r--
2025-07-28 08:07:09
perlnewmod.pod
text/plain
10.78 KB
-rw-r--r--
2025-07-28 08:07:09
perlnumber.pod
text/plain
8.16 KB
-rw-r--r--
2025-07-28 08:07:09
perlobj.pod
text/plain
34.7 KB
-rw-r--r--
2025-07-28 08:07:09
perlootut.pod
text/plain
26.16 KB
-rw-r--r--
2025-07-28 08:07:09
perlop.pod
text/plain
133.06 KB
-rw-r--r--
2025-07-28 08:07:09
perlopenbsd.pod
text/plain
1.18 KB
-rw-r--r--
2025-07-28 08:07:09
perlopentut.pod
text/plain
9.23 KB
-rw-r--r--
2025-07-28 08:07:09
perlos2.pod
text/plain
91.16 KB
-rw-r--r--
2025-07-28 08:07:09
perlos390.pod
text/plain
15.31 KB
-rw-r--r--
2025-07-28 08:07:09
perlos400.pod
text/plain
4.66 KB
-rw-r--r--
2025-07-28 08:07:09
perlpacktut.pod
text/plain
50.08 KB
-rw-r--r--
2025-07-28 08:07:09
perlperf.pod
text/plain
48.71 KB
-rw-r--r--
2025-07-28 08:07:09
perlplan9.pod
text/plain
5 KB
-rw-r--r--
2025-07-28 08:07:09
perlpod.pod
text/plain
21.68 KB
-rw-r--r--
2025-07-28 08:07:09
perlpodspec.pod
text/plain
66.87 KB
-rw-r--r--
2025-07-28 08:07:09
perlpolicy.pod
text/plain
25.03 KB
-rw-r--r--
2025-07-28 08:07:09
perlport.pod
text/plain
85.55 KB
-rw-r--r--
2025-07-28 08:07:09
perlpragma.pod
text/plain
5.05 KB
-rw-r--r--
2025-07-28 08:07:09
perlqnx.pod
text/plain
6.52 KB
-rw-r--r--
2025-07-28 08:07:09
perlre.pod
text/plain
118.07 KB
-rw-r--r--
2025-07-28 08:07:09
perlreapi.pod
text/plain
29.62 KB
-rw-r--r--
2025-07-28 08:07:09
perlrebackslash.pod
text/plain
31.07 KB
-rw-r--r--
2025-07-28 08:07:09
perlrecharclass.pod
text/plain
47.88 KB
-rw-r--r--
2025-07-28 08:07:09
perlref.pod
text/plain
34.48 KB
-rw-r--r--
2025-07-28 08:07:09
perlreftut.pod
text/plain
18.35 KB
-rw-r--r--
2025-07-28 08:07:09
perlreguts.pod
text/plain
37.43 KB
-rw-r--r--
2025-07-28 08:07:09
perlrepository.pod
text/plain
509 B
-rw-r--r--
2025-07-28 08:07:09
perlrequick.pod
text/plain
18.06 KB
-rw-r--r--
2025-07-28 08:07:09
perlreref.pod
text/plain
14.4 KB
-rw-r--r--
2025-07-28 08:07:09
perlretut.pod
text/plain
118.42 KB
-rw-r--r--
2025-07-28 08:07:09
perlriscos.pod
text/plain
1.49 KB
-rw-r--r--
2025-07-28 08:07:09
perlrun.pod
text/plain
52.29 KB
-rw-r--r--
2025-07-28 08:07:09
perlsec.pod
text/plain
25.57 KB
-rw-r--r--
2025-07-28 08:07:09
perlsolaris.pod
text/plain
29.12 KB
-rw-r--r--
2025-07-28 08:07:09
perlsource.pod
text/plain
6.71 KB
-rw-r--r--
2025-07-28 08:07:09
perlstyle.pod
text/plain
8.43 KB
-rw-r--r--
2025-07-28 08:07:09
perlsub.pod
text/plain
71.26 KB
-rw-r--r--
2025-07-28 08:07:09
perlsymbian.pod
text/plain
15 KB
-rw-r--r--
2025-07-28 08:07:09
perlsyn.pod
text/plain
43.47 KB
-rw-r--r--
2025-07-28 08:07:09
perlsynology.pod
text/plain
7.6 KB
-rw-r--r--
2025-07-28 08:07:09
perlthrtut.pod
text/plain
45.37 KB
-rw-r--r--
2025-07-28 08:07:09
perltie.pod
text/plain
37.7 KB
-rw-r--r--
2025-07-28 08:07:09
perltoc.pod
text/plain
677.9 KB
-rw-r--r--
2025-07-28 08:07:09
perltodo.pod
text/plain
376 B
-rw-r--r--
2025-07-28 08:07:09
perltooc.pod
text/plain
294 B
-rw-r--r--
2025-07-28 08:07:09
perltoot.pod
text/plain
294 B
-rw-r--r--
2025-07-28 08:07:09
perltrap.pod
text/plain
10.37 KB
-rw-r--r--
2025-07-28 08:07:09
perltru64.pod
text/plain
8.29 KB
-rw-r--r--
2025-07-28 08:07:09
perltw.pod
text/plain
4.37 KB
-rw-r--r--
2025-07-28 08:07:09
perlunicode.pod
text/plain
80.56 KB
-rw-r--r--
2025-07-28 08:07:09
perlunicook.pod
text/plain
24.89 KB
-rw-r--r--
2025-07-28 08:07:09
perlunifaq.pod
text/plain
13.33 KB
-rw-r--r--
2025-07-28 08:07:09
perluniintro.pod
text/plain
37.44 KB
-rw-r--r--
2025-07-28 08:07:09
perluniprops.pod
text/x-python
278.62 KB
-rw-r--r--
2025-07-28 08:07:09
perlunitut.pod
text/plain
7.76 KB
-rw-r--r--
2025-07-28 08:07:09
perlutil.pod
text/plain
7.46 KB
-rw-r--r--
2025-07-28 08:08:32
perlvar.pod
text/plain
76.53 KB
-rw-r--r--
2025-07-28 08:07:09
perlvms.pod
text/plain
49.63 KB
-rw-r--r--
2025-07-28 08:07:09
perlvos.pod
text/plain
3.75 KB
-rw-r--r--
2025-07-28 08:07:09
perlwin32.pod
text/plain
38.38 KB
-rw-r--r--
2025-07-28 08:07:09
perlxs.pod
text/plain
77.07 KB
-rw-r--r--
2025-07-28 08:07:09
perlxstut.pod
text/plain
48.92 KB
-rw-r--r--
2025-07-28 08:07:09
perlxstypemap.pod
text/plain
23.44 KB
-rw-r--r--
2025-07-28 08:07:09
~ ACUPOFTEA - mail.ontime-ae.com