I am a newbie in Perl, used it only to work with strings in the past, but now I am doing a MSc work that makes massive usage of threads and sockets.
My goal is to pass a socket handle to a thread, so the thread can recv data.
I have read something about shared objects (where IO::Socket is not available to pass). Is there a way to pass a socket handle to a thread?
I create the socket:
$server = IO::Socket::INET->new(
print "Socket is here :)";
@recvData = split(/:/,$data);
$p = threads->create(\&protocol => $server);