There's more than one way to do things | |
PerlMonks |
Re: XML parsing vs Regular expressionsby ajt (Prior) |
on Feb 16, 2008 at 21:59 UTC ( [id://668357]=note: print w/replies, xml ) | Need Help?? |
Many an insane person started out sane, before they tried to use regular expressions on XML. While it starts easy, it very quickly descends into chaos. As a general rule if you are working with XML, use a module that uses a real XML parser of some kind, XML::LibXML can be complicated to learn but it is very fast and complete. XML::Twig is another fast tool, and it even includes a regular expression on XML tool...
In Section
Seekers of Perl Wisdom
|
|