http://www.perlmonks.org?node_id=668353

karpatov has asked for the wisdom of the Perl Monks concerning the following question:

With help of relevant tutorial I cobbled up a script using XML::twig for extraction of 2 values (disparate branches of the tree of each record) from quite big(100 000 records) and quite structured database output. XML is new for me but I somehow believed that it is not "proper" to use regular expressions for this propose when there is "structure" a and set of tools for manipulation with it. But then I started to think that there is no reason to discard using regular expressions, especially when I need just a few values from each record. Are there some general guidelines when to use RE or some XML parsing tool? And known pitfalls of either approach? tx karpatov