Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: perl script & perl program

by Krambambuli (Curate)
on May 02, 2010 at 16:40 UTC ( [id://838002]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://838002]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-03-29 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found