Subject: | Class selector |
$ perl -MpQuery -e 'pQuery(q(<html> <a class="foo">1</a> <a
class="bar">2</a> </html>))->find("a")->each(sub { print $_->as_text,
"\n" })'
1
2
But
$ perl -MpQuery -e 'pQuery(q(<html> <a class="foo">1</a> <a
class="bar">2</a> </html>))->find("a.foo")->each(sub { print $_->as_text })'
outputs nothing.