I have created a CGI-based page,after entering all the
values in to the fields, How to get the output on the web
browser using Perl

Answer Posted / suvvari

In the HTML form, you have to mention the perl script name.
Ex: <form action="test.pl" method="POST">. Then in the
test.pl, you have to mention the content-type as
print "content-type: text/html\n\n";. And read the form
values and print them.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you set environment variables in perl?

749


How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.

1980


What is the difference between perl array and perl hash?

729


List the data types that Perl can handle?

763


What is the importance of perl warnings? How do you turn them on?

764


Explain perl.

733


What is perl programming?

758


Explain 'grep' function.

769


Explain goto name?

711


What is the difference between die and exit in perl?

757


How to read a single line from a file in perl?

740


“The methods defined in the parent class will always override the methods defined in the base class”. What does this statement means?

797


Why aren't Perl's patterns regular expressions?

792


What are the various uses of perl?

722


Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??

1945