in reply to Counting keys in a referenced hash
apply the following change:
$test = { test1 => '1', test2 => '2', test3 => '3'}; [download]