Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by toolic (Chancellor)
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 avoiding work at the Monastery: (6)
As of 2014-12-28 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls