Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by jwkrahn (Monsignor)
on Jan 26, 2012 at 16:15 UTC ( #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
Node Status?
node history
Node Type: note [id://950155]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2014-07-12 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (239 votes), past polls