Perl for Multitasking and Networking
Introduction
In multitasking, the program perform several tasks at once. Multitasking is closely related to networking where we have to handle several events or serve several clients at once.
Technologies of Interest
POE: Perl Object Environment
A Perl framework for reactive systems, cooperative multitasking and network applications.
IPC-Run
A module that allows on to run background processes with piping, and ptys. Works on UNIXes as well as Windows.
Expect
Allows one to control a terminal application interactively and wait for events.
Threads?
Many people are tempted to use threads with Perl and Internet forums are constantly frequented for help with threads in Perl. However, the use of Perl in threads is not recommended:
- Elizabeth Mattijsen has written an essay about the problems with threads in Perl on Perlmonks.
- See perlthrtut for more information.
