1DBM_Filter::null(3pm) Perl Programmers Reference Guide DBM_Filter::null(3pm)
2
3
4
7 use SDBM_File; # or DB_File, or GDBM_File, or NDBM_File, or ODBM_File
8 use DBM_Filter ;
9
10 $db = tie %hash, ...
11 $db->Filter_Push('null');
12
14 This filter ensures that all data written to the DBM file is null ter‐
15 minated. This is useful when you have a perl script that needs to
16 interoperate with a DBM file that a C program also uses. A fairly com‐
17 mon issue is for the C application to include the terminating null in a
18 string when it writes to the DBM file. This filter will ensure that all
19 data written to the DBM file can be read by the C application.
20
22 DBM_Filter, perldbmfilter
23
25 Paul Marquess pmqs@cpan.org
26
27
28
29perl v5.8.8 2001-09-21 DBM_Filter::null(3pm)