in reply to Printing data from a raw socket to the screen and/or echoing it back via event driven means
Hello, instead of making a socket from scratch you can use the alternative is IO::Socket::INET which gives you a nice scalar reference that you can call some methods on to make reading and things easier. good luck!
my $server = new IO::Socket::INET (
PeerAddr => $ip,
PeerPort => $port,
Proto => 'tcp',
or die "Couldn't connect to Server: $!\n";