Browse code

app_perl: docs for warn_mode parameter

Daniel-Constantin Mierla authored on 11/07/2022 07:50:13
Showing 1 changed files
... ...
@@ -259,6 +259,25 @@ modparam("app_perl", "perl_destroy_func", "my_perl_destroy")
259 259
 ...
260 260
 modparam("app_perl", "parse_mode", 1)
261 261
 ...
262
+</programlisting>
263
+			</example>
264
+		</section>
265
+		<section id="app_perl.p.warn_mode">
266
+			<title><varname>warn_mode</varname> (int)</title>
267
+			<para>
268
+				Allows to enable warning for perl_parse(). If set to 1, "-w" is
269
+				passed to perl_parse() and detected warnings in the Perl script
270
+				should be printed to the log.
271
+			</para>
272
+			<para>
273
+			Default value is <emphasis>0</emphasis>.
274
+			</para>
275
+			<example>
276
+			<title>Set <varname>warn_mode</varname> parameter</title>
277
+			<programlisting format="linespecific">
278
+...
279
+modparam("app_perl", "warn_mode", 1)
280
+...
262 281
 </programlisting>
263 282
 			</example>
264 283
 		</section>