Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9005b75

Browse files
committed
Mention BEGIN { strict->import(); } as a substitute for 'use strict'
in plperl functions.
1 parent6f64cf5 commit9005b75

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/2418:56:07 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.45 2005/08/2419: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 tojustput
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)

[8]ページ先頭

©2009-2025 Movatter.jp