```{index} single: pipe; POSIX function ``` ```{index} single: POSIX::pipe; Perl function ``` # pipe Create an anonymous pipe and return its two fds. ## Synopsis ```perl use POSIX qw(pipe); my ($rd, $wr) = pipe(); ``` ## What you get back A two-element list `($read_fd, $write_fd)` on success. On failure, a single `undef` is returned and `$!` is set. ## Differences from upstream Fully compatible with upstream POSIX.