in reply to Slice and dice a ref to hash

The $keys$idx should be :
print "$keys[$idx] => $values[$idx]\n";
Sorry!