in reply to eod/eof error in perl script
in thread Answer: eod/eof error in perl script
That code by itself works fine for me. You could try constructing a minimal program which causes this error, you may discover the problem while making this program, and if not you can post it here and possibly get better answers.