Help for this page

Select Code to Download


  1. or download this
    # Use this for calculating running stats
    my $all_current_plays = $game->plays->search({ GameIdentifier => $play
    +->GameIdentifier, id => { '<=', $play->id } })->search(undef, { cache
    + => 1 } );
    my $all_current_home_plays = $all_current_plays->search({ b_home_posse
    +ssion => 1 })->search(undef, { cache => 1 }); 
    my $all_current_away_plays = $all_current_plays->search({ b_home_posse
    +ssion => 0 })->search(undef, { cache => 1 });
    
  2. or download this
            if(my $b = $all_current_home_plays->search({ b_pass => 1 })) {
                my $count = $b->count;
    ...
                            $stats{HTO_1st_Pass_Score_Avg} = $totals / $ac
    +ount;
                        }
                    }