Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://294403]
help
Chatterbox?
[stevieb]: whale oil beef hooked... Strawberry just implemented a JSON structured Perls Available. That fits right in with what I've done with berrybrew quite well me thinks.
[choroba]: Good morning!
[stevieb]: morning, choroba

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-02-23 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (338 votes). Check out past polls.