in reply to Re^4: __END__ without __BEGIN__?
in thread __END__ without __BEGIN__?

No it doesnt, that's just a shell heredoc.
in somefile... bla bla bal #!perl execute() __END__ bla bla bla
end then...
> perl -x somefile
see perlrun.