http://www.perlmonks.org?node_id=838002


in reply to code to replace

Sure... :)

There are quite a few possible answers to your tricky question.

1. There is no difference, as neither of those two beasts exists.

2. However, there are Perl scripts and Perl programs.

3. As Perl scripts are scripts and Perl programs are programs, the difference between them is the same as between scripts and programs.

4. AFAIK, there is no clear cut between them. Some scripts are called programs and some programs are actually just scripts.

5. In day to day personal use, I _tend_ to refer to some Perl code as being a script if it is rather a simple, quick-and-dirty program, targeted for command line use, maybe even single-shot uses. I'd probably never call code that runs as a daemon a script.

But YMMV.


Krambambuli
---

Replies are listed 'Best First'.
Re^2: perl script & perl program
by dsheroh (Monsignor) on May 03, 2010 at 09:57 UTC
    Re: points 1 and 2, if you're going to take the position that there are Perl (scripts|programs) but not perl (scripts|programs), presumably as a variation on "Perl is the language, perl is the interpreter", then I must point out that /usr/bin/perl is a program, thus there is a "perl program", just like there's a "cat program", a "vi program", etc.