->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 .
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!
In reply to Re: How to obtain text in Mojo::DOM ?
by LanX
in thread How to obtain text in Mojo::DOM ?
by Perl_Love
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |