Solved

Filename association : Perl, Tcl, python

Posted on 1998-02-12
4
258 Views
Last Modified: 2013-12-25
They say Perl scripts can have the filename extention of '.cgi' instead of '.pl' (or even no extension) - if this be the case and you have other type of scripts (python, tcl etc etc) & u call them .cgi -- how does the system interpret these i.e. whether it's a Perl or a Python which needs to process the script requested from the browser.
0
Comment
Question by:eriklee
  • 2
  • 2
4 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 1831981
How the system "interprets" filenames depends on what system you are talking about.  Unix systems make to assumptions about the type of a file from the filename extension.  So the choice is entirely up to you.  Any use of .pl, .exe, .com, .lib, etc., is purely for your convenience.  Under Windows, however, the situation is different and names like .exe, .dll, .com, .bat have significance to the system. It's also possible to associate a file ending with .pl to be tied to the perl interpreter program.  
0
 

Author Comment

by:eriklee
ID: 1831982
So, on an NT platform i must make sure the extension of Perl, Python, Tcl/Tk scripts all have unique file extension?
0
 

Author Comment

by:eriklee
ID: 1831983
sorry i almost forgot to grade i was expecting a comment from u
0
 
LVL 32

Expert Comment

by:jhance
ID: 1831984
I must have missed your added question.  You should make all of the different "executable" types of a different extension under NT.
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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

790 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