Solved

New to perl CGI scripts

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

813 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

12 Experts available now in Live!

Get 1:1 Help Now