
ChuckC
Deleted
Jun 23, 2000, 5:10 AM
Post #1 of 3
(349 views)
|
|
Unwanted newlines in cgi output
|
Can't Post
|
|
I'm stumped. Periodically, when I test my CGI scripts, an extra newline character is inserted. Of course, I only notice this when the newline gets inserted where it causes damage, such as: <INPUT TYPE="HID DEN" . . . which results in a text box appearing on the page, with data I had intended to hide! I have $| set to 1. I am using print <<EOF; . . . EOF in places, but replacing that with a series of print "..." doesn't seem to help (unless perhaps I need to do that through the whole script, which is a lot of work to go through to make a script less readable). Reloading the page doesn't change things. If I add text to the output, I can MOVE where the extra newline goes, sometimes to a point where it causes no damage, but not always. This seems to only be a problem with largish files . . . perhaps hinting at a buffer problem of some sort?? My server is using Netscape-Enterprise/3.6 SP3 software. I'm running Perl v5.6.0 built for sun4-solaris. Any suggestions would be greatly appreciated! - Chuck
|