[Nagiosplug-devel] Re: Perl guidelines - other patches to Perl section of devel guidelines
Stanley Hopcroft
Stanley.Hopcroft at IPAustralia.Gov.AU
Mon Nov 22 02:03:05 CET 2004
Dear Folks,
Please find attached trival patch to the developer guidelines Perl
plugin section.
Manure removal only (much of it originated from me).
Yours sincerely.
--
Stanley Hopcroft
Network specialist, IT Infrastructure
IP Australia
Ph: (02) 6283 3189 Fax: (02) 6281 1353
PO Box 200 Woden ACT 2606
http://www.ipaustralia.gov.au
-------------- next part --------------
--- developer-guidelines.html Mon Nov 22 15:44:02 2004
+++ developer-guidelines.html.orig Mon Nov 22 13:34:44 2004
@@ -1033,7 +1033,7 @@
><LI
><P
>To use utils.pm, you need to provide a full path to the
- module in order for it to work.</P
+ module in order for it to work with ePN.</P
><P
CLASS="LITERALLAYOUT"
> e.g.<br>
@@ -1058,14 +1058,11 @@
></LI
><LI
><P
->Do not use <DATA> file handles (these simply do not compile under ePN).</P
+>Do not use > DATA < (these simply do not compile under ePN).</P
></LI
><LI
><P
->Do not use global variables in subroutines.
-
-This is bad practise anyway, but with ePN the plugin may return a warning or error "<global_var> won't stay shared" (because the subroutine becomes a closure with ePN).
-</P
+>Do not use named subroutines</P
></LI
><LI
><P
@@ -1089,7 +1086,7 @@
resources. Use of the <I
CLASS="EMPHASIS"
>alarm</I
-> is recommended, noting that some modules such as LWP manage their own timers using <I CLASS="EMPHASIS">alarm</I>. In that case, your alarm will be overwritten by the module.
+> is recommended.
Plugins may import a default time out ($TIMEOUT) from utils.pm.
</P
></LI
@@ -1464,4 +1461,4 @@
></DIV
></BODY
></HTML
->
+>
\ No newline at end of file
More information about the Devel
mailing list