in reply to IO::SOcket error

INET should be all caps. IO::Socket::INET. Be sure you use IO::Socket;, too.