Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • For that type of problem, I find that using XML::LibXML and XPath leads to code with even less syntax.
    • Sometimes, however, XML::LibXML is not an option. In the example above, I use XML::Compile (which BTW uses XML::LibXML internally), which is currently the best option if you want to work with schema-compliant XML documents (especially if you want to create and modify ones). The other such module I often use is XML::TreePP, which is a pure-perl solution and is available in environments where XML::LibXML isn't.