in reply to How to obtain text in Mojo::DOM ?

Spaces are not allowed in html identifiers.

->at('a.a b') can't work, since a and b are different classes.

Probably ->at('a.a')->at('a.b') does, but that's only a guess without reading the documentation of Mojo::DOM .

update

After reading the docs, give this a try

->at('a[class~="a"][class~="b"]');

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!