in reply to Re: HOP::Lexer not doing what I expected
in thread HOP::Lexer not doing what I expected
[KEYWORD => qr/select/i], [WORD => qr/\w+/ ],
What were you expecting exactly to have as result for the rules above for the string xselectx? Are you expecting to deal with word boundaries, like not matching KEYWORD only when it's separated by spaces or something, so doesn't match xselectx?
And according to my explanation, this is the right order, since WORD matches whatever KEYWORD matches, but KEYWORD is more specific, so goes up.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: HOP::Lexer not doing what I expected
by bart (Canon) on Nov 11, 2006 at 22:23 UTC | |
by cmarcelo (Scribe) on Nov 11, 2006 at 22:39 UTC |