summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2015-06-24 21:17:17 +0100
committerAaron Crane <arc@cpan.org>2015-07-13 13:54:51 +0100
commitde6cb0abd243e5772b9783a2cbeef5755a8267d6 (patch)
tree2940575d4c494e15bbb13ad738230a83121c7077 /regen
parentce0b42da7302bf923a6e4080a343f168e4b3b526 (diff)
downloadperl-de6cb0abd243e5772b9783a2cbeef5755a8267d6.tar.gz
regen/regcharclass.pl: avoid autoderef feature
Diffstat (limited to 'regen')
-rwxr-xr-xregen/regcharclass.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/regen/regcharclass.pl b/regen/regcharclass.pl
index 9b989dffb7..184437e88f 100755
--- a/regen/regcharclass.pl
+++ b/regen/regcharclass.pl
@@ -4,7 +4,6 @@ use strict;
use 5.008;
use warnings;
use warnings FATAL => 'all';
-no warnings 'experimental::autoderef';
use Data::Dumper;
$Data::Dumper::Useqq= 1;
our $hex_fmt= "0x%02X";
@@ -873,7 +872,7 @@ sub calculate_mask(@) {
my @final_results;
foreach my $count (reverse sort { $a <=> $b } keys %hash) {
my $need = 2 ** $count; # Need 8 values for 3 differing bits, etc
- foreach my $bits (sort keys $hash{$count}) {
+ foreach my $bits (sort keys $hash{$count}->%*) {
print STDERR __LINE__, ": For $count bit(s) difference ($bits), need $need; have ", scalar @{$hash{$count}{$bits}}, "\n" if DEBUG;
@@ -961,7 +960,7 @@ sub calculate_mask(@) {
# individually.
my @individuals;
foreach my $count (reverse sort { $a <=> $b } keys %hash) {
- foreach my $bits (sort keys $hash{$count}) {
+ foreach my $bits (sort keys $hash{$count}->%*) {
foreach my $remaining (@{$hash{$count}{$bits}}) {
# If we already know about this value, just ignore it.