Perl getsockname Function
This function returns a packed address of the local end of the network socket SOCKET.
Following is the simple syntax for this function:
This function returns undef on error otherwise Packed address of local socket in scalar cotext.
Following is the example code showing its basic usage:
When above code is executed, it produced following result