Subject: | Avoid usage of "use re 'eval'" |
Hi Andrew,
I need an XML parser to work with perl in an embedded environment (perl 5.10.1, Linux, but reduced memory, slow CPU).
XML::Easy seems to fit, except for one thing: in XML::Easy, "use re 'eval'" is used ( to allow (??{}) in regexp), and the 're' module is not small.
I suspect that you implemented $XML::Easy::Syntax::xml10_content_rx that way to allow $xml10_element_rx to be local-ized while parsing. Am I right?
Anyway, would it be possible to refactor $XML::Easy::Syntax::xml10_content_rx to avoid the usage of (??{ ... }) ?
A general solution (a new release of XML::Easy) would be preferred, but a solution requiring me to use a patched version of XML::Easy::Syntax only for our internal usage would be acceptable too.
Thanks for your help,
--
Olivier Mengué - http://perlresume.org/DOLMEN