Help for this page

Select Code to Download


  1. or download this
    for my $scene ( $doc->findnodes('/PLAY/SCENE') ) {
         ITEM: for my $item ( $scene->findnodes('SPEECH') ) {
    ...
              push @{$act{$scene}}, [ map { $_->to_literal } $item->findno
    +des('LINE') ];
         }
    }
    
  2. or download this
    for my $scene ( keys %act ) {
         print "SCENE $scene:\n";
         print "$searchterm:\n", join "\n", @$_ for @{$act{$scene}};
    }