You can only store one value per hash key, but that value can be an array reference:
$hash{a} = [ $hash{a}, 1 ]; [download]
In reply to Re: Extending a hash by moritz in thread Extending a hash by dingbob