...is the beginning, and one line of a HERE document. But HERE docs must have an end tag. In the case of your code, everything from print << "THANKS"; on until you see THANKS a few lines later is all quoted material. If you didn't close your HERE doc, it could be runnning into the next THANKS tag, possibly where you copied and pasted this HERE-doc from.print << "THANKS"; Content-type: text/html
Since your HERE doc is a double-quoted construct, variable interpolation occurs. And if your HERE doc is runaway, and subsequently closed with the closing token at some point later in the script, it's possible that variables which haven't yet been populated are being interpolated in your script.
Be sure to close your HERE docs, and if it is closed in your code, reflect that in your example snippets.
I should also mention that Perl's error reporting sees the entire multi-line HERE doc as all belonging to the line that contains the opening tag syntax. Hense, even if the problem is actually the fifth line of the HERE doc's text, the error will be reported as the line on which the opening tag is found. I hope this helps! Good luck.
Dave
In reply to Re: Concat Error, but I'm not concatenating??
by davido
in thread Concat Error, but I'm not concatenating??
by ecuguru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |