cgi problem

Posted on 2001-08-23
Last Modified: 2013-12-25
the problem that i have is that im new to perl/cgi and i want to know like how in asp we have pws to run and test the scripts how do i do that in case of cgi could u let me know how do i interface it my os is that of windows 98 and i want a cgi server to install and run it on my personal system and how do i use cgi
Question by:spyyder

Expert Comment

ID: 6421170
you can use the pws also! you only have to install the ActivePerl V.... ! You can download it from!

You also have to change the properties in your webroot to Execute Scripts!

.... after doing that! Everything will work if you use the extension *.plx! It is also possible to change the fileextension to *.cgi but you have to use IIS!
LVL 16

Expert Comment

ID: 6422873

".. want to know like how in asp we have pws to  run and test the scripts how do i do that in case of cgi could u let me know how do i interface it my  os is that of windows 98 and i want a cgi server to install and run it on my personal system and how  do i use cgi "

So if i understand you correctly, you have a Windows 98 system with PWS running on it.

You are currently using ASP to write CGI scripts and would like to use PERL for CGI development.

If the above is correct, then you are just 2 steps away from writing your first PERL script.

The first step, as inidicated by MichaelSonny, would be to use Active State PERL.

You can download Active State PERL for Windows from..

Select the PERL version that you want to use.

Let me know after you have finished the above, so that i can post the 2nd step which is to configue PERL to work with PWS.

Also let me know the version of PWS that you are using.


Expert Comment

ID: 6462282
Hello spyyder,

Here's how to do what you want on windows 98:

1. Download Apache Server and install (its free) you can find it at:

2. Download ActiveState Perl (this is perl for windows).  Its free and you can find it at  Then install it.

3. There should be some instructions for setting up a cgi directory on your apache server that will point to your directory where your perl scripts will be.

When all is installed you should be able to start up your Apache server with START->Programs->Apache->Start

You will need to establish a home page directory and an html page to be your home page somewhere on your hard drive and the home page directory needs to be referenced in the apache configuration file prior to startup.

You will need to reference  (this is the local loopback) in your browser to get to your home page.

It took me about 2 hours to set all this up and get it working but it does indeed work as I have a windows 98 machine where I have done this.  Your perl scripts may require a shebang line at the top to work.

                     Here is a sample perl script:

                    You may need to specify on the top line the (shebang) #! c:\perl\bin\perl.exe
 on the top line of your perl script to tell the script what program is to be used to execute it.

                     # This perl script will say hello
                        use CGI qw(:standard);

                     $time = time;
                     $date = localtime;

                     $org = "*** Your Organization ***";
                     $dept = "*** Your Dept ****";



                     sub print_htm_top {

                     #if(defined(IIS_MODE)) { print "HTTP/1.0 200 OK\n"; }
                     print <<"(END PRINT HTML)";
                     <TITLE>Request for Information - Hello -
                     <BODY BGCOLOR="#FFFFFF" LINK="#0000FF" VLINK="#52188C">

                     Hello Hello Hello Hello
                     Are your there? Are you there? Are you there?

                     (END PRINT HTML)

                     sub print_htm_bot {

                     print <<"(END PRINT HTML)";
                     (END PRINT HTML)


Good Luck!     -   paintbrush
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

LVL 16

Accepted Solution

maneshr earned 100 total points
ID: 6628529

Did you get the solution you were looking for?

What solution, if any, did you use??

Please let us know.

If you have already found the solution on your own or this question has become obsolete, please go ahead and delete this question.

LVL 16

Expert Comment

ID: 6654403

Did you get the solution you were looking for??

What solution, if any, did you use??

Pl. let us know.

NOTE: if you have found a solution on your own or if this question has become obsolete, please delete  it and free up your points.


Expert Comment

ID: 6699240
Last login was August.  This has apparently been abandoned, thus finalized.
Community Support MOderator @ Experts Exchange

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help in WHSCRIPT 9 47
Batch FIle delete files with particular date 10 76
Where do I learn ES6? 3 51
Command prompt output to variable? 9 21
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now