Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2017-11-23 02:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (328 votes). Check out past polls.

    Notices?