in reply to STDIN from CGI object

See CGI::Simple::_read_parse, Problem with read( STDIN, $query_string, $ENV{'CONTENT_LENGTH'} );, PSGI/Plack

Replies are listed 'Best First'.
Re^2: STDIN from CGI object
by vit (Friar) on Feb 19, 2011 at 16:08 UTC
    Thanks,
    Do you think it's possible to first read STDIN to a file <FILE> and then call $q = CGI->new(FILE); ?
    Thus I will save unparsed data in FILE and have an unchanged workflow with the CGI object.
      Maybe like this
      SaveStdin('newfile'); open STDIN, '<', 'newfile'; $q = CGI->new;
        Thanks,
        Is it possible to avoid literally writing to a file?