in reply to perl script without cgi
sub ReadCGI {
my($cgi, @junk, $val, $field, %in, $i);
read(STDIN, $cgi, $ENV{'CONTENT_LENGTH'});
@junk = split(/&/,$cgi);
foreach $i (0 .. $#junk) {
$junk[$i] =~ s/\+/ /g;
($field, $val) = split (/=/,$junk[$i]);
$field=~ s/%(..)/pack("c",hex($1))/ge;
$val=~ s/%(..)/pack("c",hex($1))/ge;
$in{$field} .= $val;
}
return(\%in);
}
|
The code that can be written is not the eternal Code. The typeglob that can be named is not the eternal Typeglob. |
| - The Tao of Perl |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: Re: perl script without cgi
by Ovid (Cardinal) on Nov 07, 2001 at 06:07 UTC | |
by chlige (Initiate) on Nov 08, 2001 at 03:22 UTC |