Help for this page

Select Code to Download


  1. or download this
    my $html = '<h3>Heading 3.1</h3>
    <div>Heading 3.1 content</div>
    ...
    for my $entry ( $dom->find('h3')->each ){
        say $entry->all_text;
    }
    
  2. or download this
    Heading 3.1
    Heading 3.2
    
  3. or download this
    my $html = '<h3>Heading 3.1</h3>
    <span>Heading 3.1 content</span>
    ...
    for my $entry ( $dom->find('h3 + span')->each ){
        say $entry->all_text;
    }
    
  4. or download this
    Heading 3.1 content
    Heading 3.2 content