Skip to content

Commit 9005b75

Browse files
committed
Mention BEGIN { strict->import(); } as a substitute for 'use strict'
in plperl functions.
1 parent 6f64cf5 commit 9005b75

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

doc/src/sgml/plperl.sgml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.44 2005/08/24 18:56:07 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.45 2005/08/24 19:16:49 tgl Exp $
33
-->
44

55
<chapter id="plperl">
@@ -253,12 +253,16 @@ SELECT * FROM perl_set();
253253
</para>
254254

255255
<para>
256-
Another way to use the <literal>strict</> pragma is to just put
256+
Another way to use the <literal>strict</> pragma is to put
257257
<programlisting>
258258
use strict;
259259
</programlisting>
260-
in the function body. But this only works for <application>PL/PerlU</>
261-
functions, since <literal>use</> is not a trusted operation.
260+
in the function body. But this only works in <application>PL/PerlU</>
261+
functions, since <literal>use</> is not a trusted operation. In
262+
<application>PL/Perl</> functions you can instead do
263+
<programlisting>
264+
BEGIN { strict->import(); }
265+
</programlisting>
262266
</para>
263267
</sect1>
264268

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy