use Web::Query 'wq'; my $translation = wq($html)->find('#content-area span')->first->text;