Help for this page

Select Code to Download


  1. or download this
    for my $e ($dom->find('span')->each) {
      if($e->text =~ /$mydate/ ){
    ...
        # do stuff with $myhtml
      }
    }
    
  2. or download this
    #!/usr/bin/env perl
    use Modern::Perl;
    ...
    die "Couldn't get page" unless $page;
    my( $assignment ) = $page =~ m{ $date .+? <span .+?>(.+?)</span>\s*</p
    +> }sx;
    say $assignment;