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:
will get you into problems. Usemy $grammar = q { ... };
instead.my $grammar = <<'__EOI__'; ... __EOI__
Tip: "." is not special in character classes, so it doesn't need to be escaped then.
In reply to Re: RecDescent Issue: using item hash with (?) repetition specifier
by ikegami
in thread RecDescent Issue: using item hash with (?) repetition specifier
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |