saintmike has asked for the wisdom of the Perl Monks concerning the following question:
Can you see why it doesn't capture the number but leaves $1 undef'd? Any help apprechiated.use Perl6::Rules; grammar Foo { rule number { (\d+) { print "Found '$1'\n"; } } } "123" =~ m/<Foo.number>/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl6::Rules Capturing
by tilly (Archbishop) on Oct 12, 2004 at 06:03 UTC | |
|
Re: Perl6::Rules Capturing
by TheDamian (Vicar) on Oct 13, 2004 at 00:18 UTC |