# perldoc > bind

yaml
---
type: CommandReference
command: bind
mode: perldoc
section: ""
source: perldoc
---
## Quick Reference

- `bind SOCKET,NAME` — binds a network address to a socket

## Name

**bind** — bind a network address to a socket

## Synopsis

perl
bind SOCKET,NAME
## Description

Binds a network address to a socket, just as `bind(2)` does. Returns true if it succeeded, false otherwise. `NAME` should be a packed address of the appropriate type for the socket.

## Examples

See the examples in "Sockets: Client/Server Communication" in `perlipc`.

## See Also

- `perlipc` (Perl interprocess communication documentation)
- `bind(2)` system call