in reply to Socket Problem
The reason that I say this is $! should translate to an actual message of what the error is.
Also, Look at properly formatting your questions with the appropriate code tags and such and you will get a much faster response.