Â
Hello experts,
What should you name after printing HTML? It should be print from a Perl CGI script.
Also, I have noticed an empty return reports, exit reports, and in a number of cases.
Does it issue?
#!perl
print "Content-type: text/htmlnn";
print <<'END_HTML';
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello world!</title>
</head>
<body>
  <h1>Hello world!</h1>
</body>
</html>
END_HTML
# do anything else here?
# return;
# exit;
Â
I need to solve it. Please help. Thanks.
Answered By
Amy Shum
5 points
N/A
#152628
What is to be named after printing HTML?
Hi Liz Ann Joslin, you don't need to name anything else after HTML tag. You are facing problem because of the very end call, "END_HTML". Remove this and try again. Hope this will work with the codes. Though, you may try to get pin-point issue by installing Perl CGI Script compiler that goes through the entire source and detects to you errors wherever it finds.
What is to be named after printing HTML?
This particular perl collection utilizes perl5 objects to restore an easy task to produce web fill-out types and parse their items. This particular package specifies CGI objects, organizations that contain the particular beliefs from the existing problem string as well as other condition factors.
Employing a CGI thing's strategies, you can even examine keywords as well as parameters handed in your piece of software, and make forms in whoever original beliefs are taken from the present query (therefore conserving express information).
The actual component gives quick way features that create expression HTML, reducing typing as well as coding mistakes.Â
Additionally , it provides functionality for many from the heightened options that come with CGI scripting, such as support regarding file submissions, cookies, cascading style sheets, server push, as well as structures.Â
CGI.pm furthermore offers a easy function-oriented programming style for many who don't need the object-oriented characteristics.Â
The current model associated with CGI.pm can be acquired