(Top)    < CGI Headers? Caveat Coder >

print() considered harmful

NEVER EVER USE print()

Any string printed to STDOUT gets passed to the browser -- before the headers.

The browser therefore will assume that string is the header.

The result: 'bad headers' error in the browser.

Should appear in the server's error log.


CGI::Application
(v.2.0)
17