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

Hmmm, still requires the addition of code "<<END" before the data.

Update: Yeah, I know I was wrong. Joost's solution works.

Replies are listed 'Best First'.
Re^5: __END__ without __BEGIN__?
by Joost (Canon) on Mar 29, 2005 at 21:27 UTC
Re^5: __END__ without __BEGIN__?
by bmann (Priest) on Mar 29, 2005 at 21:38 UTC
    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