Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Creating Reports with hashes: Use of uninitialized value while adding integers

by jwkrahn (Abbot)
on Jan 26, 2012 at 16:15 UTC ( [id://950155]=note: print w/replies, xml ) Need Help??

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";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://950155]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-18 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found