boat73 has asked for the wisdom of the Perl Monks concerning the following question:
What I want to do is to print the shtml in a cgi program but this code does not work. Could someone point me in the right direction please? Here is my cgi code:<html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-12 +52"> <title>New Page 1</title> </head> <body> <!--#echo var="DATE_LOCAL" --> </body> </html>
#!c:/Perl/bin/Perl.exe use CGI; use CGI::Carp qw(fatalsToBrowser); print "Content-type: text/shtml\n\n"; &printtest(); sub printtest{ print <<ENDHTML <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-12 +52"> <title>New Page 1</title> </head> <body> <!--#echo var="DATE_LOCAL" --> </body> </html> ENDHTML }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Server Side Includes with print <<ENDHTML
by skx (Parson) on Nov 22, 2004 at 15:45 UTC | |
|
Re: Server Side Includes with print <<ENDHTML
by ikegami (Patriarch) on Nov 22, 2004 at 15:39 UTC | |
|
Re: Server Side Includes with print <<ENDHTML
by Mutant (Priest) on Nov 22, 2004 at 16:29 UTC | |
|
Re: Server Side Includes with print <<ENDHTML
by perrin (Chancellor) on Nov 22, 2004 at 17:00 UTC | |
by boat73 (Scribe) on Nov 22, 2004 at 17:50 UTC | |
by perrin (Chancellor) on Nov 22, 2004 at 17:56 UTC |