Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Re: print content in cgi and html

by barrd (Canon)
on Sep 26, 2003 at 16:25 UTC ( [id://294481]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: print content in cgi and html
in thread print content in cgi and html

Use multi HERE Documents like:

if ($condition) { print <<HTML Content-type: text/html <html><head>.....</head> <body bgcolor="white"> ... blah blah HTML if ($variable == 1) { print $anotherVariable; } print <<HTML ... blah blah </body></html> HTML }

Or as I mentioned before use HTML::Template, it can handle all that for you too... go on try it, you know you want to. ;)

Log In?
Username:
Password:

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

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

    No recent polls found