Summary

The IO::Poll module provides an interface to the system poll() call and can be used as an alternative to select() for multiplexing across multiple I/O handles. Compared with select(), poll() provides improved performance when multiplexing across a large number of handles and should be considered for servers that will have heavy loads. However, IO::Poll should be used with care when writing applications designed for portability, because it became a part of the standard I/O library only as of Perl version 5.6.

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.