Perl fork/pipe/exec

Mark Lester (
Mon, 30 Sep 1996 18:08:00 +0100

Message-Id: <>
Date: Mon, 30 Sep 1996 18:08:00 +0100
From: Mark Lester <>
Subject: Perl fork/pipe/exec
To: FastCGI-list <>

I am having problems forking a process and piping to/from it in fast-CGI
Perl. I understand this is because the file operations have been overloaded 
FCGI, although I don't understand too much. I am using the program,
which does stuff like
        open(STDIN,  "<&$kid_rdr");
        open(STDOUT, ">&$kid_wtr");

My hack to solve this is to hang the sub-program off a socket.
My colleague Mike Smith has brought up the subject before, we need to
use FastCGI for our templating system which has a high start-up cost.

P.S. has anyone else hacked up something like
     <meta view=my_view>
          <tr>${first_field} <td> ${second_field} .....

where my_view is a routine like

sub my_view
     local(@array_of_records)=     db_i("my_query",$cursor->{'parameter'});
     # returns array of refs to hash records
     return (\@array_of_records);

Who do we tell of our invention ?.