From c5a244126ea279edfba2249f1eea5b8c9af43513 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sun, 30 Jun 2013 00:26:46 -0700 Subject: [PATCH] Update constant.pm to reflect list inlinement MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I also removed ‘some symbols may be redefined without generating a warning’. I know not to what it refers. It has been there as long as constant.pm has. If a constant is clobbered by another constant with the same value, there is no warning, as it is harmless. That may be to what it refers, but we don’t need a caveat for that. --- dist/constant/lib/constant.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dist/constant/lib/constant.pm b/dist/constant/lib/constant.pm index f947117..378522a 100644 --- a/dist/constant/lib/constant.pm +++ b/dist/constant/lib/constant.pm @@ -366,8 +366,7 @@ used. =head1 CAVEATS -In the current version of Perl, list constants are not inlined -and some symbols may be redefined without generating a warning. +List constants were not inlined unless you are using Perl v5.20 or higher. It is not possible to have a subroutine or a keyword with the same name as a constant in the same package. This is probably a Good Thing. -- 2.7.4