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 toolic (Bishop)
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950122]
help
Chatterbox?
Discipulus spent ~3 hours on the roof.. with mediocre results..
[Eily]: what were you trying to do on the roof Discipulus?
[Eily]: if I had done the same here, I'd contain a swimming-pool worth of water by now...
[Discipulus]: i put some shodowing cloth against the killer sun. but i'm still not happy with this
Discipulus roof? or terrace? well is flat anyway, parallel to the ground
[Eily]: upper ground :P
[marto]: erix [id://1193617| pretty much
[marto]: err pretty much

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-06-29 12:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (664 votes). Check out past polls.