in reply to perl vs script

For me, a 'script' is a code that I can whip together in ten minutes or less to solve an immediate problem. It implies that there are no tests, packaging, and anything more that perfunctory documentation. Often, none of the corner cases are considered, since the problem that I am sorting is very specific.

A program, on the other hand, is code that I expect to be hanging around for a while and needs the formal structure of POD, a test-harness, and a bit of thought in the design process. (Note: I often find that a script that I wrote twice last week really should become a program....)

My people in the Computer Science disciplines make the distinction between 'script' and 'program' in terms of the mechanism that is used to run them. A script is run through an Interpreter; a program is run through a Compiler. The implication is that the Interpreter does not produce a reusable intermediate structure (no 'object code') that can be saved and used again later without reprocessing the source code. This distinction has gotten badly blurred in past decade or so, what with Just In Time Compilers and Interpreters that output byte-code-objects that are executed by a VM.

----
I Go Back to Sleep, Now.

OGB