What is to be named after printing HTML?

Asked By 10 points N/A Posted on -
qa-featured

 

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.

SHARE
Best Answer by Monteno Gara
Answered By 0 points N/A #152628

What is to be named after printing HTML?

qa-featured

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.

Best Answer
Best Answer
Answered By 0 points N/A #152629

What is to be named after printing HTML?

qa-featured

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

Login/Register to Answer

Related Questions