Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: (shockme) Re: (Ovid) Re: Command Line Output Different from Output to Browser

by shockme (Chaplain)
on Mar 26, 2002 at 14:13 UTC ( [id://154401]=note: print w/replies, xml ) Need Help??


in reply to (shockme) Re: (Ovid) Re: Command Line Output Different from Output to Browser
in thread Command Line Output Different from Output to Browser

Oops. Okay, invalid HTML. I can correct that. However, even under Internet Explorer, it's never being output to the browser. If I move the print statements from the require script to the main script, the print statements work (invalid HTML and all). However, when print from within the require script, it never makes it to the browser.

That's the real point of this thread (I hope). Why is the script operating differently when I move the print statements?

Again, this is just a learning exercise for me. I don't care what the answer is. I just want to know what the answer is.

If things get any worse, I'll have to ask you to stop helping me.

  • Comment on Re: (shockme) Re: (Ovid) Re: Command Line Output Different from Output to Browser

Replies are listed 'Best First'.
Re: Re: (shockme) Re: (Ovid) Re: Command Line Output Different from Output to Browser
by reclaw (Curate) on Mar 26, 2002 at 15:36 UTC
    You haven't said weather or not you're printing an html header. Either way, enter:
    print "Content-Type: text/html\n\n";
    On a line before "require("HEADER01.pl");" in your code above. If that doesn't work, post the code in "HEADER01.pl".

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://154401]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found