in reply to Hashes - perl

Use map to traverse values of your hash and get the Val1 values from them, sum them afterwards.