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

The heredoc joost used is quoting for his shell, not perl. Put the following in a file (443263.pl, in my case) then run it using the -x command line switch.
bla bla bla ignored #!perl #stuff_to_execute(); print "Hello, world!\n"; __END__ bla bla
Output without -x: C:\S>perl 443263.pl syntax error at 443263.pl line 6, near "ignored" Execution of 443263.pl aborted due to compilation errors. With -x: C:\S>perl -x 443263.pl Hello, world!
see perlrun for details