?
Solved

New to perl CGI scripts

Posted on 2001-06-16
5
Medium Priority
?
218 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 200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses
Course of the Month16 days, 1 hour left to enroll

850 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