http://www.perlmonks.org?node_id=518151


in reply to Need to get multiple values.

This seems a little on the vague side. What is your criteria for matching values? When you match up the keys, will the secondary key always be the first key with a 'y' added to the end? If so, will the one with the y appended to it always be after the y-less one? Is there other matching criteria? Do you want the output to be joined with a space or with ' and '?

If you clear up what your looking for I'm sure someone can help.