Are you using notepad as a text editor? You're probably missing a newline after the last EOF, so just add one.From perlop:

perlop wrote:If the terminating identifier is on the last line of the program, you must be sure there is a newline after it; otherwise, Perl will give the warning Can’t find string terminator "END" anywhere before EOF....