in reply to Perl Socket Connection Check

Are you trying to write a server or a client?

If you're trying to write a server, the client should tell you in the first byte whether it is trying to talk SOCKS 4 or 5.

If you're writing a client, see Net::SOCKS. You should specify the lowest possible version that has all of the features that you need.