Perl Programming/Keywords/pipe

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Previous: package Keywords Next: pop

The pipe keyword[edit | edit source]

The pipe function opens a pair of connected pipes like the corresponding system call. It returns true on success.

A loop of piped processes may result in deadlock. Also, pipes use I/O buffering, so depending on the application, it may be a good idea to set $| to flush the WRITEHANDLE after each command.

Syntax[edit | edit source]


See also[edit | edit source]

Previous: package Keywords Next: pop