On 6/23/06, Moon, John <[EMAIL PROTECTED]> wrote:
118 print "value =<$totals{$prev_fund}{$prev_service}{AMT}>\n";
Can't use string ("3862926") as a HASH ref while "strict refs" in use at ./journal_items.pl line 118.
From the looks of that message, I'm guessing that $totals{$prev_fund}
holds 3862926 instead of a hash reference.
154 $totals{$fund} += $amt;
Here you're using $totals{$fund} as if it's an integer, instead of a hash reference. If it is a reference before line 154, it will be (silently) converted to an integer, since you're using it as one. Since the integer is a memory address, it's almost certain not to be what you want. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>