in reply to Recipe of day - hashes q.

Are you asking about the use of the ternary syntax, or the difference between exists and defined with hashes?

Not part of your question, but I agree with a statement merlyn made: The ternary operator is good if you are using the value returned by it. If you are just using it to avoid an if, it obfuscates the code for no good reason.