原文:
18. Processes & Inter-Process Communication under Perl/Tk.
Inter-Process Communication (IPC) is the subject of spawning and controlling other programs or "processes" from within perl (sometimes using sockets to do so). The subject is briefly discussed in the perlipc(1) man page, and was addressed towards the end of Chapter 6 of The Camel. The subject is also discussed in the perl FAQ and at Tom Christiansen's ftp site (in the various perlipc* files) at: ftp://ftp.perl.com/perl/info/everything_to_know/ 199.45.129.30
as well as the web site at: http://www.perl.com/perl/everything_to_know/ipc/index.html
In addition to the usual perl IPC routines Tk allows (at least) three more special functions: fileevent (for handling I/O events), send (for inter-widget communication), and after (for time control like a sleep expressly for widgets).
Remember:
If a packet hits a pocket on a socket on a port,
And the bus is interrupted as a very last resort,
And the address of the memory makes your floppy disk abort,
Then the socket packet pocket has an error to report!
-Ken Burchill(?)
译文:
18. Perl/Tk下的进程和进程间通讯
所谓进程间通讯(IPC)就是在Perl程序中产生和控制其它程序或进程的问题(有时需要使用套接字来实现)。在perlipc的手册页中有关于这个主题的简单讨论,同时perlFAQ中也有专门讨论这个主题的内容。可以从Tom Christiansen的Ftp站点获得(其中的perlipc*文件):
ftp://ftp.perl.com/perl/info/everything_to_know/ 199.45.129.30
或者是下面的网址:
http://www.perl.com/perl/everything_to_know/ipc/index.html
另外,除了常规的IPC方法外,Tk中还允许(至少)三个特殊的函数:fileevent(用于控制输入/输出事件),send(用于组件间的通讯)和after(用于实现类似sleep的特殊功能来进行时间上的控制)。
(译者注:下面好像是一首诗或是绕口令?很惭愧,我没太看懂……只好算了:()