summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dist/constant/lib/constant.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/dist/constant/lib/constant.pm b/dist/constant/lib/constant.pm
index ef618c43ab..f3c2a578e7 100644
--- a/dist/constant/lib/constant.pm
+++ b/dist/constant/lib/constant.pm
@@ -4,7 +4,7 @@ use strict;
use warnings::register;
use vars qw($VERSION %declared);
-$VERSION = '1.23';
+$VERSION = '1.24';
#=======================================================================
@@ -32,7 +32,6 @@ BEGIN {
# Before this makes its way into a dev perl release, we have to do
# browser-sniffing, as it were....
- return unless $const;
*{chr 256} = \3;
if (exists ${__PACKAGE__."::"}{"\xc4\x80"}) {
delete ${__PACKAGE__."::"}{"\xc4\x80"};
@@ -130,7 +129,7 @@ sub import {
if ($multiple || @_ == 1) {
my $scalar = $multiple ? $constants->{$name} : $_[0];
- if (_DOWNGRADE) { # for 5.10 to 5.14
+ if (_DOWNGRADE) { # for 5.8 to 5.14
# Work around perl bug #31991: Sub names (actually glob
# names in general) ignore the UTF8 flag. So we have to
# turn it off to get the "right" symbol table entry.