Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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.


Comment on Re: Creating Reports with hashes: Use of uninitialized value while adding integers
Select or Download Code

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 scrutinizing the Monastery: (10)
As of 2015-07-01 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (22 votes), past polls