tangent pretty much covered this, but I can expand a little bit more about the arrayref bit:
Like tangent said, the hashref $seen{$key}->{col1_vals} points to is an arrayref. To sum its contents, you can do something like this:
my $sum = 0; foreach (@{$seen{$key}->{col1_vals}}) { $sum += $_; }
In reply to Re^4: Hashes, Arrays, and Confusion -- In a bit over my head!
by Riales
in thread Hashes, Arrays, and Confusion -- In a bit over my head!
by bpthatsme
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |