Message-ID: <
20050119173352.GA15592@radu.onastick.net>
p4raw-id: //depot/perl@23822
for my $item (split /,/, $enum_body) {
my ($key, $declared_val) = $item =~ /(\w+)\s*(?:=\s*(.*))?/;
$val = defined($declared_val) && length($declared_val) ? $declared_val : 1 + $val;
- $seen_define{$key} = $declared_val;
+ $seen_define{$key} = $val;
$const_names{$key}++;
}
} # while (...)