in reply to Re: HTM::TreeBuilder, HTML::Element's look_down() method
in thread HTM::TreeBuilder, HTML::Element's look_down() method

Ah, thanks! And I could just use the same method as in the first example. The examples I looked at didn't use die(). I should have thought of that myself.

Thanks again!

  • Comment on Re^2: HTM::TreeBuilder, HTML::Element's look_down() method

Replies are listed 'Best First'.
Re^3: HTM::TreeBuilder, HTML::Element's look_down() method
by afresh1 (Hermit) on Oct 06, 2010 at 21:45 UTC

    If you had done the same as the first example, it should have worked as well, however I would still recommend checking that it was successful.

    my $tree = HTML::TreeBuilder->new_from_content($html) or die $!;
    l8rZ,
    --
    andrew