null.html

来自「perl教程」· HTML 代码 · 共 72 行

HTML
72
字号
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../displayToc.js"></script>
<script language="JavaScript" src="../../tocParas.js"></script>
<script language="JavaScript" src="../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../scineplex.css">
<title>lib/DBM_Filter/null.pm</title>
<link rel="stylesheet" href="../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>

<body>

<script>writelinks('__top__',2);</script>
<h1><a>lib/DBM_Filter/null.pm</a></h1>
<p><a name="__index__"></a></p>

<!-- INDEX BEGIN -->

<ul>

	<li><a href="#dbm_filter__null">DBM_Filter::null</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#see_also">SEE ALSO</a></li>
	<li><a href="#author">AUTHOR</a></li>
</ul>
<!-- INDEX END -->

<hr />
<p>
</p>
<h1><a name="dbm_filter__null">DBM_Filter::null</a></h1>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
    <span class="keyword">use</span> <span class="variable">SDBM_File</span><span class="operator">;</span> <span class="comment"># or DB_File, or GDBM_File, or NDBM_File, or ODBM_File</span>
    <span class="keyword">use</span> <span class="variable">DBM_Filter</span> <span class="operator">;</span>
</pre>
<pre>
    <span class="variable">$db</span> <span class="operator">=</span> <span class="keyword">tie</span> <span class="variable">%hash</span><span class="operator">,</span> <span class="operator">...</span>
    <span class="variable">$db</span><span class="operator">-&gt;</span><span class="variable">Filter_Push</span><span class="operator">(</span><span class="string">'null'</span><span class="operator">);</span>
    
    <span class="comment">=head1 DESCRIPTION
    </span>
</pre>
<p>This filter ensures that all data written to the DBM file is null
terminated. This is useful when you have a perl script that needs
to interoperate with a DBM file that a C program also uses. A fairly
common issue is for the C application to include the terminating null
in a string when it writes to the DBM file. This filter will ensure that
all data written to the DBM file can be read by the C application.</p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p><a href="../../lib/DBM_Filter.html">the DBM_Filter manpage</a>, <a href="../../lib/Pod/perldbmfilter.html">the perldbmfilter manpage</a></p>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<p>Paul Marquess <a href="mailto:pmqs@cpan.org">pmqs@cpan.org</a></p>

</body>

</html>

⌨️ 快捷键说明

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