May 9, 2001, 4:19 PM
Post #4 of 4
No no no, this is not correct. A 'here doc' does not function in the same was as normal perl statements. What you need is that your EOF that is the last line be on a line all by itself - that means no spaces, no invisible characters, nothing. The best way to check that is to select that line in your text editor - if the line extends past the last character (in this case, the F), then the script will crash.
Re: Why oh why does it always happen! (here docs)
[In reply to]
Also, make sure that the EOF is quoted at the beginning of the here doc:
Otherwise it is a bareword, and perl defintely does not like barewords.
So, basically, you need to make sure that wherever you 'end-of-here-doc' string is, it is all by itself on the line - then you should have no problems!
Hope this helps!
r j o s e p h
"Violence is a last resort of the incompetent" - Foundation