?
Solved

perl.pl to perl.exe

Posted on 1997-08-09
3
Medium Priority
?
572 Views
Last Modified: 2013-12-25
Dear Experts

  I am developing a cybermall website with plenty of
cgi scripts to handle forms inputs.The  cgi scripts
are witten in perl language .I have just downloaded
the perl  interpreter (compiler) from the web .My questions:

1) Do I have to upload the whole perl interpreter(almost two megabytes) to my internet service provider',s server ? The perl source code has *.pl extention and therefore to run them one should write" perl.exe program.pl",can't I just make them exe and upload them without uploading the interpreter itself to the server?.

2) In either ways, what should the html "action" tag (when submiting the form ) look like in order to call the perl script(program.pl),given that  my files are located in http://host/mydirectory,should it be
 action=http://host/mydirectory/perl.exe program.pl
or should it be action=http://host/mydirectory/program.exe
or should it be action=http://host/mydirectory/program.cgi ,and in the later case how do i convert program.pl to program.cgi?

Thank you for your patience and support
fadi
0
Comment
Question by:fadih
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
faster earned 800 total points
ID: 1829567
1) The server must install Perl.
2) the action should be action=http://host/mydirectory/program.pl.

There are some config you need to do on the server, this depends on what kind of the server your service provider is using.  If WinNT with information server, the admin should create a shell cgi directory and put your pl scriplts there.  Actaully, unless your service provider and you are from the same company, otherwise it is unlikely that they will allow you to install perl.  But probably they already have perl installed and then you just need to copy your scripts to the right place (assume that the ISP allow you to do so).

Good luck.
0
 

Author Comment

by:fadih
ID: 1829568
Good answer faster but what about scripts with cgi extention
like program.cgi where do they fit; in the action tag or somewere else?
0
 
LVL 7

Expert Comment

by:faster
ID: 1829569
It is the same (extension is just extension).  If you are using windows NT server, then you need to associate .cgi with perl.exe (perl installation program will associate .pl with perl.exe automatically, unless you use .cgi as the default extension for perl scripts).  If you are not using perl, i.e. the .cgi is itself an exe, then you need to do nothing, jut put the cgi in common cgi directory (not shell cgi), provided it is information server.  On unix you need not do this, the first line will tell unix where to get perl.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
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 …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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…
Suggested Courses

764 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