Another way is:
In reply to Re^2: perl & XML: getting last child? by Lotus1 in thread perl & XML: getting last child? by ambrill