Tech Tutorials Database
GeekArticles Web Programming Perl

Multiplexing filehandles with select() in perl.

Category: Perl
Comments (0)

The problem I/O requests such as read() and write() are blocking requests. Suppose you have a line in a program thad get STDIN from a terminal like the following: $input = <STDIN>; What will happen here is that the program's execution will block until there a line of input is available, i.e. the user types something followed by a newline. In many cases this is the desired behavior. Suppose you have a program that accepts requests through a socket and does some processing for each...n


Sponsored Links

Read Next: Perl XML Quickstart: The Perl XML Interfaces