Perl_Love has asked for the wisdom of the Perl Monks concerning the following question:
use Mojo::DOM; my $dom = Mojo::DOM->new(); $|=1; my $test1=$dom->parse('<a class="ab">2016-05-18</a>')->at('a.ab')->tex +t; print "$test1\n"; my $test2=$dom->parse('<a class="a b">2016-05-18</a>')->at('a.a b')->t +ext; print "$test2\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to obtain text in Mojo::DOM ?
by haukex (Archbishop) on May 22, 2016 at 09:41 UTC | |
by Perl_Love (Acolyte) on May 22, 2016 at 09:55 UTC | |
|
Re: How to obtain text in Mojo::DOM ?
by LanX (Saint) on May 22, 2016 at 09:43 UTC | |
|
Re: How to obtain text in Mojo::DOM ?
by FreeBeerReekingMonk (Deacon) on May 22, 2016 at 09:47 UTC | |
by Perl_Love (Acolyte) on May 22, 2016 at 12:04 UTC | |
by Anonymous Monk on May 22, 2016 at 12:10 UTC |