in reply to Re: HOP::Lexer not doing what I expected
in thread HOP::Lexer not doing what I expected

Why? WORD and DQUOTED can't match the same thing. Or is the match unanchored (i.e. preceeded by .*?)?

Replies are listed 'Best First'.
Re^3: HOP::Lexer not doing what I expected
by GrandFather (Saint) on Nov 11, 2006 at 19:03 UTC

    I'm wondering that myself! I installed HOP::Lexer to have a play and learn (I've not used the module before). It seemed that WORD was matching first and changing the order fixed that as I expected. It was not obvious why it should match first however.

    I've now skim read the documentation (including HOP::Lexer::Article) and still don't understand why WORD was matching! Maybe time to trawl through the code?


    DWIM is Perl's answer to Gödel