Anonymous2003 has asked for the wisdom of the Perl Monks concerning the following question:
thank you very much for your time#!/agl/tools/perl/bin/perl $file = 'home/testuser3/choicebug.txt'; sub GetParams { my $webparams; if ($ENV{'QUERY_STRING'} ne '') { $webparams = "$ENV{'QUERY_STRING'}"; } else { read(STDIN, $webparams, $ENV{'CONTENT_LENGTH'}); } return $webparams; } open(FILE, ">>$file")||die "Can't open $file"; GetParams(); while (<$webparams>) { print $webparams; } close (FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: save form
by castaway (Parson) on Jul 31, 2003 at 10:20 UTC | |
|
Re: save form
by ChrisR (Hermit) on Jul 31, 2003 at 13:05 UTC | |
|
Re: save form
by bobn (Chaplain) on Jul 31, 2003 at 12:59 UTC | |
|
Re: save form
by nite_man (Deacon) on Jul 31, 2003 at 11:23 UTC |