Mention BEGIN { strict->import(); } as a substitute for 'use strict'
authorTom Lane
Wed, 24 Aug 2005 19:16:49 +0000 (19:16 +0000)
committerTom Lane
Wed, 24 Aug 2005 19:16:49 +0000 (19:16 +0000)
in plperl functions.

doc/src/sgml/plperl.sgml

index e7cdd2eb3c89b2c0536fccbd24fd74620b3ef5ef..f1a99a1f999f9e7deaf50f06c57930b69296cb57 100644 (file)
@@ -1,5 +1,5 @@
 
 
  
@@ -253,12 +253,16 @@ SELECT * FROM perl_set();
   
 
   
-   Another way to use the strict pragma is to just put
+   Another way to use the strict pragma is to put
 
 use strict;
 
-   in the function body.  But this only works for PL/PerlU
-   functions, since use is not a trusted operation.
+   in the function body.  But this only works in PL/PerlU
+   functions, since use is not a trusted operation.  In
+   PL/Perl functions you can instead do
+
+BEGIN { strict->import(); }
+