|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: problem with reading from socketby rjt (Friar) |
| on Dec 03, 2012 at 11:56 UTC ( #1006860=note: print w/ replies, xml ) | Need Help?? |
|
You most likely have tried to use a "telnet" connection in PuTTY, which results in some control characters being sent when the connection is established. You need a raw connection. Select "Raw" instead of "Telnet" when you create the connection, or try this from a command prompt (assuming putty.exe is in your path or in the current directory): putty -raw localhost 6699Then it works. Secondly, have you considered using the OO interface to sockets in Perl? In can clean up your code significantly:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||