Solved

perl.pl to perl.exe

Posted on 1997-08-09
3
569 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 200 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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
React or Angular? 6 86
Rename all files in a directory to numerical order 26 32
Powershell GUI 11 63
Permission on folders 6 24
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 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 count occurrences of each item in an array.

733 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