http://www.perlmonks.org?node_id=932691


in reply to XML::Twig prev_sibling

Try using prev_siblings->[0] (not tested, just RTFM-ed).