http://www.perlmonks.org?node_id=950122


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.