good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Parsing HTML/XML with Regular Expressions (XML::Twig)by haukex (Archbishop) |
on Oct 17, 2017 at 11:25 UTC ( [id://1201490]=note: print w/replies, xml ) | Need Help?? |
Thanks very much for the contribution! Regarding the DATA and issues, see my reply here - although I assume you meant $twig->parse(*DATA) instead of $twig->parse(<DATA>)? With the updated example in the root node, your code works! And yes, I assumed someone might take up the challenge of actually using a regex - but of course then I'd have to try to break it with more test cases ;-)
In Section
Meditations
|
|