in reply to HofA - Sum Totals
The my is localizing your result to the implicit for loop. Try this instead:
my $sumcredits = 0; for (@trans_details) { $sumcredits += $_->{'credits'} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HofA - Sum Totals
by drodinthe559 (Monk) on Feb 23, 2010 at 21:22 UTC |