in reply to pattern match operator
The =- should be =~.
Ps: From now on, wrap your code in <code> tags. See Writeup Formatting Tips,