Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 having an uproarious good time at the Monastery: (11)
As of 2014-08-22 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (160 votes), past polls