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.


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://950118]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (14)
As of 2015-07-07 20:38 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 (93 votes), past polls