Yup, that link covers it. I looked around the wiki, but didn't happen to come across that page.
The solution is
ANS($ans->cmp(typeMatch=>Formula("x*y")));
This way it still gives errors if the student answer isn't either an allowable string or a function of x and y.
Thanks.
WeBWorK Problems
Correct answer is either a string or a function
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 10 posting(s) in 1 day