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

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: Getting content using Web::Query
by neilwatson (Priest) on Jun 17, 2015 at 19:10 UTC

    Do you mean my $subject = $parts->find( 'div.subject' )->html;? That returns undef too.

    Neil Watson
    watson-wilson.ca

      Perhaps try ->filter instead of ->find?

      Dum Spiro Spero
      That returns undef too.
      Are you sure? For me it returns:
      '<div><h3>@if version_after macro is illogical</h3></div>';