Solved

New to perl CGI scripts

Posted on 2001-06-16
5
203 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…

758 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

19 Experts available now in Live!

Get 1:1 Help Now