Re: Speeding up recdescent...
[email protected] (Philip Newton)
| Newsgroups | perl.recdescent |
|---|---|
| Organization | very little |
| Message-ID | <[email protected]> |
On Mon, 10 Dec 2001 14:02:33 -0500, [email protected] (Ted Zlatanov) wrote: > Avoid the type_t declaration with an optional regex, you should use > > type_t : /ADD|ADDRANGE|DELETE|DELETERANGE/ Shouldn't the longer alternatives come before the shorter ones? Otherwise 'ADDRANGE' would be matched by the /ADD/ part (unless you anchor it, of chourse). Cheers, Philip