Commit 9005b757 authored by Tom Lane's avatar Tom Lane

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

in plperl functions.
parent 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"> <chapter id="plperl">
...@@ -253,12 +253,16 @@ SELECT * FROM perl_set(); ...@@ -253,12 +253,16 @@ SELECT * FROM perl_set();
</para> </para>
<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> <programlisting>
use strict; use strict;
</programlisting> </programlisting>
in the function body. But this only works for <application>PL/PerlU</> in the function body. But this only works in <application>PL/PerlU</>
functions, since <literal>use</> is not a trusted operation. functions, since <literal>use</> is not a trusted operation. In
<application>PL/Perl</> functions you can instead do
<programlisting>
BEGIN { strict->import(); }
</programlisting>
</para> </para>
</sect1> </sect1>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment