in reply to Split string into hash

We had almost the same homework question yesterday.

This one at least shows some effort to solve the problem, but I do wonder where the question comes from.