great job, but you can do
unset %var1 %var2 %var3 %etc...
and, i think you should put scanning for lamers b4 the ifs, so u dont have to say it twice :P