in reply to Is it safe to use join on a hash?

You're using join on keys of a hash - which is a list.