summaryrefslogtreecommitdiff
path: root/pod/perlstyle.pod
diff options
context:
space:
mode:
Diffstat (limited to 'pod/perlstyle.pod')
-rw-r--r--pod/perlstyle.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perlstyle.pod b/pod/perlstyle.pod
index 8bc269de8a..e4a5aab41f 100644
--- a/pod/perlstyle.pod
+++ b/pod/perlstyle.pod
@@ -159,6 +159,13 @@ previous example.
=item *
+Avoid using grep() (or map()) or `backticks` in a void context, that is,
+when you just throw away their return values. Those functions all
+have return values, so use them. Otherwise use a foreach() loop or
+the system() function instead.
+
+=item *
+
For portability, when using features that may not be implemented on
every machine, test the construct in an eval to see if it fails. If
you know what version or patchlevel a particular feature was