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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.