join ('', map { "$i
  • $_
  • \n" . hash_to_html ($x->{$_}, "$i ") } sort (keys (%$x)))