in reply to Passing variable to if statement
Immediate guess the the 'once' in your regex /$name/ismo. That means compile regex only once because I do not expect it change. But it does :)
Neil Watson watson-wilson.ca