If you really want to reinvent the wheel, you can read the query string as follows:
my $query; my $req_method = $ENV{REQUEST_METHOD}; if ($req_method eq 'POST') { read STDIN, $query, $ENV{CONTENT_LENGTH}; # <-- } elsif ($req_method eq 'GET') { $query = $ENV{QUERY_STRING}; }
(But it's not recommended...)
In reply to Re: STDIN not working, STDIN hanging
by almut
in thread STDIN not working, STDIN hanging
by FRIENDOFGOD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |