If you don't have
IO::Socket, you have either a very old Perl, or a very broken Perl. It's unlikely that any other comment in this thread will be useful until you remedy that situation first. You can install an entire modern Perl in your home directory. I know, I had to do that at one of my prior ISPs. (Now I'm my own ISP. {grin})
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.