in reply to Re: print $socket $message
in thread print $socket $message

yep, IO::Socket::INET or sockets made by builtin functions- they're the same.
you're right, you need to use eval/alarm block anyway but if you use print instead of send it doesn't work.
and I found no points in manuals about it. I don't know is it a bug or just undocumented feature- in both cases newbies might have stupid problems :(