Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by JavaFan (Canon)
on Jan 26, 2012 at 15:16 UTC ( #950118=note: print w/ replies, xml ) Need Help??


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

Though I do not understand why I need to gave "no warnings - line 52" for a column that only has integers.

...

my $quant = $tree_collection{$years}{$trees}{$size} || "-";
If $tree_collection{$years}{$trees}{$size} is 0, or undefined, $quant is -, which isn't an integer.

Whether this is happening or not, I cannot be bothered to find out. You actually print the value of $quant, but you're not showing us the output. And I really am not going to download your program and run it myself.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2016-06-25 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (324 votes). Check out past polls.