in reply to Extending a hash

You can only store one value per hash key, but that value can be an array reference:

$hash{a} = [ $hash{a}, 1 ];