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

Another way is:

my ($last) = $dom->findnodes("/library/book[last()]");