The variable wasn't the problem. Did you read my reply? I left your code as it was except for the addition of the t switch in the $read identifier.
Yeah, I didn't get a chance to try yet. I was asking on that one incase he was right :p
(Or if you both were right)