X-Spam-Check-By: one.develooper.com X-Spam-Status: No, hits=5.2 required=7.0 tests=CARRIAGE_RETURNS,NO_MX_FOR_FROM,NO_REAL_NAME,QUOTED_EMAIL_TEXT,RELAYING_FRAME,SPAM_PHRASE_03_05 version=2.44 X-SMTPD: qpsmtpd/0.26, http://develooper.com/code/qpsmtpd/
On Friday, Nov 14, 2003, at 02:29 US/Pacific, [EMAIL PROTECTED] wrote: > When writing HTML in perl can you interpolate the html with perl code > or do you have to write the whole script in perl with each tag within > a prel print() function. The importance of this is layout, nested > tables, > design view in Dreamweaver etc etc - Dreamweaver 4 cannot render the > code > in design view. From: drieux [mailto:[EMAIL PROTECTED] Sent: 15 November 2003 17:13 I'm not sure I follow what you mean by 'interpolate the html'. Allow me to illustrate, I have a piece of perl cgi code that I use to simplify my bloging, [jeeves: 59:] lwp-request http://www.wetware.com/drieux/PR/blog2/Code/ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>Perl One, Code Two, it is knitting</title> <base href="http://www.wetware.com/drieux/PR/blog2/Code/" <META http-equiv=Cache-Control content=no-cache> <META http-equiv=Pragma content=no-cache> </head> <frameset rows="122,*" > <frame name="BlogHead" src="header.html"> <frameset cols="120,*"><frame name="VertNav" src="../bin/vertNav.cgi?dir=Code"> <frame name="BlogSpace" src="200311.html"> </frameset> </frameset> </html>[jeeves: 60:] everything gets set up and then a Print Statement sends the whole scalar $page out the door. As you will note, the above sets up 'framesets' and as such would require the browser to make all of the additional calls, and then based upon what the browser is doing, render that for the human to see. So, please help us help you. ciao drieux Hi Drieux and thanks for the subject line, which I forgot in the effort to avoid legal notices/footers. Here is an example of what I do in php: <body> <? if($x=1){print("this")}else{print("that");} ?> <font size=1>Print this anyway</font> </body> The code bits are executed on the server of course. Is there an equivalent of the <? ?> tags to start and stop code writing in perl? Thanks, John -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]