in reply to Pattern matching with hash
I think you will recieve much more help if you show what you've coded so far.