'sux' =~ $class [download]
would also work. It was the /g that was the problem.
In reply to Re^2: strange behavior of regex by tybalt89 in thread strange behavior of regex by biologistatsea