?
Solved

Filename association : Perl, Tcl, python

Posted on 1998-02-12
4
Medium Priority
?
266 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 150 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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 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 …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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 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

809 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