in reply to Using HOP::Lexer to parse a document

Also, since HOP::Lexer calls split using your regexes, the capturing parenthesis in your TEXT regex are corrupting the results. Remove those and GrandFather's suggestion will also work.
  • Comment on Re: Using HOP::Lexer to parse a document