Help for this page

Select Code to Download


  1. or download this
    my @tally;
    
  2. or download this
    for my $i (0 .. $#regexes) {
        my $regex = $regexes[$i];
    ...
        $regex =~ s/\)$//;
        print "$regex:\t$tally[$i]\n";
    }
    
  3. or download this
    perl script.pl > output.txt
    
  4. or download this
    open my $out, '>', 'output.txt' or die $!;
    for my $i (0 .. $#regexes) {
    ...
        $regex =~ s/\)$//;
        print {$out} "$regex:\t$tally[$i]\n";
    }