Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: print content in cgi and html

by svsingh (Priest)
on Sep 26, 2003 at 13:09 UTC ( #294403=note: print w/ replies, xml ) Need Help??


in reply to print content in cgi and html

Try HERE documents. I haven't used them to print the Content-type line in my scripts, but I would expect them to work for that as well. They're great for short blocks of HTML code.

print <<HEAD; <html><head><title>Page title</title></head> <body bgcolor="white"> HEAD # create the page print <<FOOT; </body></html> FOOT


Comment on Re: print content in cgi and html
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2015-07-29 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls