Summary

This chapter introduced three topics that we will use throughout this book.

Processes correspond to an instance of a running program. Perl can create new processes via its system() and fork() commands, or replace the current process with a different one with exec().

Pipes are I/O connections between two processes. A pipe looks and acts like a filehandle, but it is connected to another process rather than to a file. If a pipe is opened for reading, data read from it is taken from the standard output of the process at the other end. If a pipe is opened for writing, data printed to it is received by the other process on its standard input.

Signals provide programs with notification of exceptional conditions, among which are PIPE errors ...

Get Network Programming with Perl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.