I am just writing a basic form where the user enters the time of an event.
It is entered in 24 hour format (HHMM) with no seconds. What I want to do
is perform some error checking on the entry by confirming that the first two
numbers are between 00 and 23 and the second two are between 00 and
The argument 'tcp' is the correct use. Telnet is implemented over the tcp
protocol. The proto field is looking for tcp, udp etc. I believe the
problem may be at the beginning of the script. Try
use IO::Socket::INET; (you may have to get it from cpan)
instead of use IO::Socket;. That might