Help for this page

Select Code to Download


  1. or download this
    for my $i (0 .. $#regexes) {
        my $regex = $regexes[$i];
        ++$tally[$i] while $xml =~ /$regex/g;
    }
    
  2. or download this
    for my $i (0 .. $#regexes) {
        my $regex = $regexes[$i];
        $regex =~ s/^\(\?\^://;
        $regex =~ s/\)$//;
        printf {$out} "%-20s %30d \n", $regex, $tally[$i] // 0 ;
     }
    
  3. or download this
     if ($tally[$i] ne '0') {
        printf {$out} "%-20s %30d \n", $regex, $tally[$i] // 0 ;
      }