Monday, October 17, 2005

No EOF

I usually use here files when putting long strings in perl programs, and I usually use the string EOF to indicate the end of the here file. Today, I forgot to put the EOF in the document, and perl crapped out with the error:

Can't find string terminator "EOF" anywhere before EOF at ./csv-web.pl line 36.


This is not an example of obtuse error messages, or bad code - since I knew what I did wrong and how to fix it. The wording just struck me funny.

No comments: