bind SOCKET, ADDRESS
Definition and Usage
Binds the network ADDRESS to the filehandle identified by SOCKET. The ADDRESS should be a packed address of the appropriate type for the socket being opened.
0 on failure
1 on success
Have a look at socket example in Perl Socket Session.