in reply to broadcast in Perl with sockets

It appears you are trying to broadcast TCP connections. TCP is connection-oriented, and doesn't support broadcast. Try using UDP instead.