I was kind of disappointed because I thought this module would help eliminate some of the cruft and needless looping and checking for defined parent elements that the traditional HTML::TreeBuilder requires. It does not. It is fairly limited in its ability to just wrap a ->look_down call. You'll still have to map over lists returned and call $_->getValue() . I don't _think_ XPath differentiates between finding a node and finding a value, this module does, and that hurts usability.
This in my eyes should return a list of src attributes for all img elements that have class="mainPhoto"
$root->findvalue( '//img[@class="mainPhoto"]/@src' );
Instead you're left to do: