I think you will recieve much more help if you show what you've coded so far.
In reply to Re: Pattern matching with hash by Biker in thread Pattern matching with hash by Anonymous Monk