in reply to Re: Re: Problem in IO::Socket syntax?in thread Problem in IO::Socket syntax?
Your hash %ports has no key of service.