diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-11-24 20:59:39 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-11-24 21:45:21 -0700 |
commit | a8bd0d47f960000fee81e97d55dd5e8bac15e034 (patch) | |
tree | 23eae268e2e20a3a45d4551967fe428ce066f327 /pod/perlhack.pod | |
parent | de0df3c095e361fff88c58066233c2210f8a55b1 (diff) | |
download | perl-a8bd0d47f960000fee81e97d55dd5e8bac15e034.tar.gz |
perlhack: Add note to not use "register" declarations
Diffstat (limited to 'pod/perlhack.pod')
-rw-r--r-- | pod/perlhack.pod | 6 |
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 |