in reply to Re^5: STDIN from CGI object
in thread STDIN from CGI object

Yes it works. Would it be correct to do it through | this way:
my $stdin_str = ""; read (STDIN, $stdin_str, $ENV{'CONTENT_LENGTH'}); open FH, ">|" or die $!; print FH $stdin_str; open STDIN, "<|" or die $!; my $q = new CGI; close STDIN; close FH;

Replies are listed 'Best First'.
Re^7: STDIN from CGI object
by Anonymous Monk on Feb 21, 2011 at 02:30 UTC
    Try it. I rarely use |, but it doesn't look like it would work to me , which is why I recommended opening to a scalar