提交 9005b757 编写于 作者: T Tom Lane

Mention BEGIN { strict->import(); } as a substitute for 'use strict'

in plperl functions.
上级 6f64cf59
<!--
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.44 2005/08/24 18:56:07 tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.45 2005/08/24 19:16:49 tgl Exp $
-->
<chapter id="plperl">
......@@ -253,12 +253,16 @@ SELECT * FROM perl_set();
</para>
<para>
Another way to use the <literal>strict</> pragma is to just put
Another way to use the <literal>strict</> pragma is to put
<programlisting>
use strict;
</programlisting>
in the function body. But this only works for <application>PL/PerlU</>
functions, since <literal>use</> is not a trusted operation.
in the function body. But this only works in <application>PL/PerlU</>
functions, since <literal>use</> is not a trusted operation. In
<application>PL/Perl</> functions you can instead do
<programlisting>
BEGIN { strict->import(); }
</programlisting>
</para>
</sect1>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册