reyjrar has asked for the wisdom of the Perl Monks concerning the following question:
if ($ENV{'REQUEST_METHOD'} eq 'POST') read(STDIN, $buffer, $ENV{'CONTE +NT_LENGTH'}); why, I don't know, but I "should use this because its more portable". anyways here's the part that needs attention: foreach $thing (keys(%INPUT)) { if(ref($INPUT{$thing}) eq "ARRAY") { $INPUT{$thing} = join('^' +, $$INPUT{$thing}); } # if($#INPUT{$thing}) { $INPUT{$thing} = join('^', $$INPUT{$thin +g}); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI type question involving arrays..
by Adam (Vicar) on Sep 26, 2000 at 21:31 UTC | |
|
Re: CGI type question involving arrays..
by kilinrax (Deacon) on Sep 26, 2000 at 21:39 UTC | |
by Ovid (Cardinal) on Sep 26, 2000 at 21:45 UTC | |
by reyjrar (Hermit) on Sep 26, 2000 at 21:42 UTC | |
|
Re: CGI type question involving arrays..
by swiftone (Curate) on Sep 26, 2000 at 22:21 UTC | |
|
RE: CGI type question involving arrays..
by little (Curate) on Sep 26, 2000 at 21:42 UTC | |
|
Re: CGI type question involving arrays..
by reyjrar (Hermit) on Sep 27, 2000 at 00:05 UTC | |
|
Re: CGI type question involving arrays..
by japhy (Canon) on Sep 26, 2000 at 23:07 UTC | |
|
Re: CGI type question involving arrays..
by wardk (Deacon) on Sep 27, 2000 at 17:46 UTC |