in reply to File I/O while using Sockets?
In my testing, I saw some spurious \r (carriage return) characters -- that may have been due to my use of a telnet client. A simple tr/\r//d; before the chomp fixed it for me.print $client "Thank you for your command: ->$_<-\n"; print OUT "->$_<-\n";
|
|---|