You cant return a hash from a function. Only lists and scalars.
In reply to Re^3: How would I write this using map? by trwww in thread How would I write this using map? by Plankton