Perhaps you should, as suggested, explicitly state your platform detals and which perl distribution is in use when your system call to telnet fails. All you have explicitly ansered is that telnet work from the command prompt. Did you read How do I post a question effectively??