in reply to Getting content using Web::Query
<div class="subject"> my $subject = $parts->find( '#div-subject' )->html;
This looks like a mismatch. find() expects a CSS3 selector. #div-subject selects all elements with the ID div-subject. To select a div element with class subject, use div.subject instead.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting content using Web::Query
by neilwatson (Priest) on Jun 17, 2015 at 19:10 UTC | |
by GotToBTru (Prior) on Jun 17, 2015 at 20:05 UTC | |
by neilwatson (Priest) on Jun 17, 2015 at 20:20 UTC | |
by tangent (Parson) on Jun 18, 2015 at 02:20 UTC |