Help for this page

Select Code to Download


  1. or download this
            for my $size (@sizeOfTrees) {
                my $quant = $tree_collection{$years}{$trees}{$size} || "-"
    +;
    ...
    
                # { no warnings; $total += $quant; }    # WHY DO I NEED TH
    +IS?
            }
    
  2. or download this
            for my $size (@sizeOfTrees) {
                my $quant = $tree_collection{$years}{$trees}{$size} || 0;
    ...
    
                $total += $quant;
            }
    
  3. or download this
    my $quantity        = ();
    my $total_quantity  = ();
    
        my $total      = ();
        my $year_total = ();
    
  4. or download this
                printf "%9s", "$quant";
            printf "%5s", "$total";
            printf "%9s", "$total_col{$i}";
        printf "%5s", "$year_total";