in reply to Quick XML::LibXML question

see pop (or shift) in XML::LibXML::NodeList

my $temp = $doc->getElementsByTagName('currentReading') ->pop->to_literal;
poj

Replies are listed 'Best First'.
Re^2: Quick XML::LibXML question
by edimusrex (Monk) on Feb 26, 2016 at 21:40 UTC

    That's exactly what I was looking for! Thank you. I will read up on that to get a better understanding

Re^2: Quick XML::LibXML question
by Anonymous Monk on Feb 27, 2016 at 15:50 UTC

    or

    my ( $temp ) = $doc->getElementsByTagName('currentReading');