in reply to Problem with CGI::Vars
Your hypotheses is that read did a partial read and needs to be called again to get the rest. You've offered no proof of this at all, so let's verify it.
Does adding the following to your script help?
use CGI 3.55; BEGIN { *CGI::read_from_client = sub { my($self, $buff, $len, $offset) = @_; local $^W=0; # prevent a warning die if $MOD_PERL; while ($len) { my $bytes_read = read(\*STDIN, $$buff, $len, $offset); die "read: $!\n" if !defined($bytes_read); last if !$bytes_read; $len -= $bytes_read; $offset += $bytes_read; } }; }
help?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with CGI::Vars
by Chipper (Initiate) on Jun 09, 2011 at 06:34 UTC | |
by ikegami (Patriarch) on Jun 09, 2011 at 18:14 UTC | |
by Anonymous Monk on Jun 09, 2011 at 07:53 UTC | |
by Chipper (Initiate) on Jun 09, 2011 at 12:40 UTC | |
by Corion (Patriarch) on Jun 09, 2011 at 12:58 UTC |