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