in reply to Re^3: How a web server sending data to a CGI perl script ?
in thread How a web server sending data to a CGI perl script ?

Oh Wow!! Surprised!!! Great demonstration and works perfectly! And I just notice the system() or the backticks ( the right tool for my case ) are actually kind of fork thing... which is the "how" that I exactly asking! Thanks man!

Though.. what still puzzle me is how do you leave the <STDIN> open for the CGI to read() in this code pattern ?

Replies are listed 'Best First'.
Re^5: How a web server sending data to a CGI perl script ?
by Anonymous Monk on Jan 27, 2016 at 08:50 UTC

    Its not a pattern, just shows %ENV is inherited from parent process

    Its one part of what HTTP::Request::AsCGI does, STDIN... stuff is the other part