Here is my final code that works. If anyone has a better way to do it, please share.
my $dom = Mojo::DOM->new($source); my $sidecarsource = $dom->find('div.today_nowcard-sidecar')->first(qr/ +Right Now/)->content; #print Data::Dumper::Dumper($sidecarsource); my $sidecardom = Mojo::DOM->new($sidecarsource); my $wind = $sidecardom->at('table > tbody > tr:nth-child(1) > td > spa +n')->text;
In reply to Re^2: searching with mojo dom
by adambot
in thread searching with mojo dom
by adambot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |