perlfunc
gods
<P>
send - send a message over a socket
<P>
<HR>
<P>
send
<FONT SIZE=-1>SOCKET,MSG,FLAGS,TO</FONT>
<P>
send
<FONT SIZE=-1>SOCKET,MSG,FLAGS</FONT>
<P>
<HR>
<P>
Sends a message on a socket. Takes the same flags as the system call of the same name. On unconnected sockets you must specify a destination to send
<FONT SIZE=-1>TO,</FONT> in which case it does a
<FONT SIZE=-1>C</FONT>
<CODE>sendto()</CODE>. Returns the number of characters sent, or the undefined value if there is
an error. See [%linkNodeTitle "perlman:perlipc|UDP: Message Passing", $NODE, "UDP: Message Passing",{anchor=>"UDP_Message_Passing"};%] for examples.
<HR>