use Mojo::DOM; say Mojo::DOM->new('29° C')->at('a[href="/wetter/berlin"]')->text;