Solved

New to perl CGI scripts

Posted on 2001-06-16
5
205 Views
Last Modified: 2013-12-25
Hello!

I've made CGI scripts in C++ before, and understand the basics of how they work.

I would now like to try my hand at making some perl CGI scripts.  What do I need to do?  Do I have to "compile" the perl script into a CGI?  My web site hosting company says that they don't support perl scripts, but they do allow you to use scripts that are converted to exe's via a "perl2exe" program.

Basically, with that in mind, I want to know what I have to do to get started.  Thanks!
0
Comment
Question by:helpmealot
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
bebonham earned 50 total points
ID: 6199015
oh that is so weak of your host!!

personally, I do not really care for perl2exe except for hacking purposes, because the exe's it makes are not as stable as the actuall perl.

also, of course, your webserver is IIS right?
otherwise I don't think you will be running exe on a unix/linux

oh well, you can download it from indigostar.com.

you will have to configure the web server (or the host will) to run exe's like that (instead of downloading them)

otherwise, you just  write the script in perl on your machine (with activestate perl installed - activestate.com)

test it, make sure it works, and then perl2exe scriptname.pl will create scriptname.exe which you can then use.


Hope that helps....

Bob
0
 
LVL 8

Expert Comment

by:bebonham
ID: 6199016
you do know that perl written from C I think...so your C progs should be running faster and more stable anyways..
I guess the advantage to using perl is you should be able to whip out cgi's a lot faster :)
0
 

Author Comment

by:helpmealot
ID: 6199882
Hmm, before I go an install all this stuff and let it invade the system, how big are the exe's generated by the perl2exe program?  Are they that big?  If so, perhaps I'll stick with C++ because those exes are usually only about 20kb.
0
 
LVL 8

Expert Comment

by:bebonham
ID: 6200420
oh yeah...excatly my point too..I didn't mention because I didn't know how big C++ was making them...

since perl2exe actually writes all the code from the used modules into the exe, the files are quite large.

usually at least 600kb


Bob
0
 

Author Comment

by:helpmealot
ID: 6200434
Hmm, perhaps since my web hosting company doesn't support perl scripts in the non-exe format, I won't bother with perl.  Thanks for your input!
0

Featured Post

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.

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

929 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

9 Experts available now in Live!

Get 1:1 Help Now