in reply to Does __END__ really mean ignore rest of lines?

The issue is that it will no longer disply on the page.
That is a bit meagre as a description of this error.

Does it print anything at all? Perhaps some error message?

Is the script run through a web-server (the inclusion of some HTML code seems to suggest this)? If so, does the script run as expected when called from the command line?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: Does __END__ really mean ignore rest of lines?

Replies are listed 'Best First'.
Re^2: Does __END__ really mean ignore rest of lines?
by jaacmmason (Acolyte) on Jan 18, 2011 at 18:10 UTC

    This will only produce a blank white page. No error, no nothing. I guess this would be what to expect from what I have undersood so far. The script will run fine from the command line, but of course it is not formatted, and is way too long for the user to be able to see the data in a command window.

    I will be looking at a few other suggestions and ideas I have gotten from some above posts. Maybe with new insight I can find something I missed before!

    Thank you very much!

      Pipe the output from the script to an .html file, then view the file in a browser to see the rendered version. I very often do the equivalent of this while developing and debugging web code to check that the rendered page is correct.

      True laziness is hard work