Solved

New to perl CGI scripts

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Python variable _ manually assigned 9 95
ICACL switch help. How to include current folder 2 55
AWK Code gives empty file, why? 12 47
Merging text files strings with filename 18 45
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 …
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

749 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