http://cepheid.blog17.fc2.com/blog-category-8.html
forkで時間のかかる処理をバックグランドで行い、ブラウザをすぐに解放させる方法。
#!/usr/local/bin/perl
# バッファリング制御
$| = 1;
# HTMLヘッダー出力
print "Content-type: text/html; charset=EUC-JPnn";
print "fork()のテストn";
FORK:
if( $pid = fork )
# 親プロセス--------------------------------------------
print "親プロセスの処理n";
...
詳細解説リンク/関連リンク:hitkik wiki