in reply to RecDescent Issue: using item hash with (?) repetition specifier

Please don't put use <pre>. Use <c> instead. It has numerous benefits.

Please don't put your entire post in <pre> or <c> tags. It hurts readability. Just place <p> at the start of every paragraph instead.

Being new is no excuse. Previewing your node would have revealed a problem.

Finally, the second item is range(?), not range. Use the right name as the hash key (range(?)), and your code works. (Using $item[2] would also work.)

Tip:

my $grammar = q { ... };
will get you into problems. Use
my $grammar = <<'__EOI__'; ... __EOI__
instead.

Tip: "." is not special in character classes, so it doesn't need to be escaped then.