The my is localizing your result to the implicit for loop. Try this instead:
my $sumcredits = 0; for (@trans_details) { $sumcredits += $_->{'credits'} }
In reply to Re: HofA - Sum Totals
by kennethk
in thread HofA - Sum Totals
by drodinthe559
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |