Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by toolic (Bishop)
on Jan 26, 2012 at 15:23 UTC ( #950122=note: print w/ replies, xml ) Need Help??


in reply to Creating Reports with hashes: Use of uninitialized value while adding integers

If I change:
my $quant = $tree_collection{$years}{$trees}{$size} || "-" +;
to:
my $quant = $tree_collection{$years}{$trees}{$size} || 0;
One group of your warning messages goes away:
Argument "-" isn't numeric in addition (+)
You must decide if this still gives you the output you need.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2016-07-28 12:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (254 votes). Check out past polls.