use XML::Trivial; use strict; use warnings; my $obj = XML::Trivial::parse(' 000 Echo Ok - All systems are up. '); print $$obj{PayoneerResponse}{Echo}{Status}->ts;