$n = minimum_key(\%h); # minimum_key left as an exercise while (@n or ($n