summaryrefslogtreecommitdiff
path: root/pod/perlhack.pod
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-11-24 20:59:39 -0700
committerKarl Williamson <public@khwilliamson.com>2012-11-24 21:45:21 -0700
commita8bd0d47f960000fee81e97d55dd5e8bac15e034 (patch)
tree23eae268e2e20a3a45d4551967fe428ce066f327 /pod/perlhack.pod
parentde0df3c095e361fff88c58066233c2210f8a55b1 (diff)
downloadperl-a8bd0d47f960000fee81e97d55dd5e8bac15e034.tar.gz
perlhack: Add note to not use "register" declarations
Diffstat (limited to 'pod/perlhack.pod')
-rw-r--r--pod/perlhack.pod6
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perlhack.pod b/pod/perlhack.pod
index f16f5b874f..0385676b1b 100644
--- a/pod/perlhack.pod
+++ b/pod/perlhack.pod
@@ -381,6 +381,12 @@ extra paren, e.g. "if (a && (b = c)) ..."
"if (!foo) ..." rather than "if (foo == FALSE) ..." etc.
+=item *
+
+Do not declare variables using "register". It may be counterproductive
+with modern compilers, and is deprecated in C++, under which the Perl
+source is regularly compiled.
+
=back
=head3 Test suite