use Mojo::DOM; my $dom = Mojo::DOM->new(); my $test2=$dom->parse('2016-05-18')->at('a.a.b')->text; print "$test2\n"; __END__ 2016-05-18