in reply to Re: Printing only the "keys that have a value" in hash
in thread Printing only the "keys that have a value" in hash

++ for this reply - it's important to check that the arrayref held in the value for each key actually references a non-empty array - otherwise, I'm guessing that the exists call will always return true, since the arrayref will exist, but potentially reference an empty array.