|
1 | 1 | <!-- |
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 $ |
3 | 3 | --> |
4 | 4 |
|
5 | 5 | <chapter id="plperl"> |
@@ -253,12 +253,16 @@ SELECT * FROM perl_set(); |
253 | 253 | </para> |
254 | 254 |
|
255 | 255 | <para> |
256 | | - Another way to use the <literal>strict</> pragma is tojustput |
| 256 | + Another way to use the <literal>strict</> pragma is to put |
257 | 257 | <programlisting> |
258 | 258 | use strict; |
259 | 259 | </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> |
262 | 266 | </para> |
263 | 267 | </sect1> |
264 | 268 |
|
|