in reply to Using join and ternary operator together
What error does it throw?
Maybe you want to look at what the ternary operator does (in perlop), and how it is spelled?