Help for this page

Select Code to Download


  1. or download this
    ## Slurp the file and break into sections
    my @sections = split '-{103}', do{ local $/; <> };
    close *ARGV;
    
  2. or download this
    sub buildFmt {
        my $templ = shift;
    ...
        $fmt .= 'A' . ( $_ - $p ) . ' ' and $p = $_ for @cols;
        return $fmt;
    }
    
  3. or download this
    ## Section 2
    ## Break the section into lines
    ...
    my @homeTotals = unpack $fmt, shift @section2;
    print "@homeTotals";
    
  4. or download this
    #! perl -slw
    use strict;
    ...
    
    ## Section3 ...
    
  5. or download this
    c:\test>588245 boxscore_340251.txt
    4 | Drevitch, Scott |  | 1 |  +1 | 4 |  |  |  |  |  |  |  |  |  |  |  
    +|  |
    ...
    41 | Sikich, Zach |  | 1 |   0 |  |  |  |  |  |  |  |  |  |  |  |  |  
    +|
    83 | Tapp, Jason |  |  |   0 |  |  |  |  |  |  |  |  |  |  |  |  |  |
       TOTALS | 4 | 8 |  -2 | 34 | 17 | 6 | 1 |  |  |  |  | 1 |  |  |  |  
    +|