in reply to How to output from socket connections, please help

try

print SOCKET $data;

rdfield