in reply to Filehandle woes

For anyone who may have been interested, the problem seemed to lie in using the bareword 'SOCK'.

After changing all the calls of foo(SOCK) to (using a reference to the fh) foo(\*SOCK), all was fine.