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

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.

Replies are listed 'Best First'.
Re^3: STDIN from CGI object
by Anonymous Monk on Feb 19, 2011 at 16:31 UTC
    Maybe like this
    SaveStdin('newfile'); open STDIN, '<', 'newfile'; $q = CGI->new;
      Thanks,
      Is it possible to avoid literally writing to a file?
        Is it possible to avoid literally writing to a file?

        If this approach works, it should be possible. See the documentation for open, or IO::Scalar/IO::String