in reply to Re^2: Pass a IO::Socket handle to a thread
in thread Pass a IO::Socket handle to a thread
It will avoid silly typos and assist you to find other bugs as well.
Hint 1: check your if tests. There is a big difference between == and eq.
Hint 2: forget the subroutine prototypes. They don't do what you think they do.
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
My blog: Imperial Deltronics