in reply to Re^5: odd behavior with DATA section
in thread odd behavior with DATA section

I've only ran it with a newline. You seem to be missing my point:

A trailing new line on the "last" line will NOT NECESSARILY generate a last empty line

It depends on your OS and/or version of Perl.