I'm confused.
I'm writing a cgi script. I know that if I print from my script without first printing the header type, my web broswer will say that there is an internal server error.
However, it I print from within a function called from the main body of my script (and I don't print out the header) everything printed displays fine within my web broswer.
Why is this?