Doe-Eyed Innocent has asked for the wisdom of the Perl Monks concerning the following question:
After that it's just a series of prints to let the user know the form was submitted. (And yes, I remembered to print "Content-type: text/html\n\n", so that's not the source of the script headers error.) What in the world is going on? What's broken about this code?#!/usr/bin/perl -w read (STDIN, $x, $ENV{'CONTENT_LENGTH'}); @data = split(/&/, $x); @data = (@data, '======================'); open(PRES, ">>poll_results.txt") or die "could not open $!"; print PRES @data; close PRES;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cannot open file for appending
by chromatic (Archbishop) on Feb 25, 2003 at 23:15 UTC | |
|
Re: Cannot open file for appending
by Ovid (Cardinal) on Feb 25, 2003 at 23:21 UTC | |
|
Re: Cannot open file for appending
by jasonk (Parson) on Feb 25, 2003 at 23:16 UTC | |
|
Re: Cannot open file for appending
by Thelonius (Priest) on Feb 26, 2003 at 00:30 UTC | |
|
Re: Cannot open file for appending
by JayBonci (Curate) on Feb 26, 2003 at 07:48 UTC | |
|
Re: Cannot open file for appending
by Doe-Eyed Innocent (Initiate) on Feb 27, 2003 at 19:27 UTC |