You're using join on keys of a hash - which is a list.
In reply to Re: Is it safe to use join on a hash? by clueless newbie in thread Is it safe to use join on a hash? by pritesh_ugrankar