in reply to List of Numbers
If there are no further rules for the integer hash keys, it looks like:
++$x until exists $num{ $x } or $x > 99 [download]
But if there are mathematical rules for the keys, you can probably find a better way.