diff --git a/asn1/asn1enum.pl b/asn1/asn1enum.pl index 8584e841..beac35f6 100755 --- a/asn1/asn1enum.pl +++ b/asn1/asn1enum.pl @@ -22,7 +22,7 @@ foreach my $k (keys %h) { next; } printf("%s ::= INTEGER {\n", $k); - foreach my $r (sort { $a <=> $b } keys $h{$k}) { + foreach my $r (sort { $a <=> $b } keys %{$h{$k}}) { printf("\t%s(%d),\n", $h{$k}{$r}, $r); } printf("}\n");