in reply to Re: perl & XML: getting last child?
in thread perl & XML: getting last child?

This works well. In some cases, the last node is null (or does not exist). How can you print a "0" in those cases? thanks

Replies are listed 'Best First'.
Re^3: perl & XML: getting last child?
by space_monk (Chaplain) on Apr 18, 2013 at 13:08 UTC
    If you put some example XML data in a comment, I (or someone else) will almost certaintly work out a way to do it. :-)
    If any of my proposed solutions have minor errors, it's because I don't waste my genius on trivial matters. :-P