Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: perl script & perl program

by Krambambuli (Deacon)
on May 02, 2010 at 16:40 UTC ( #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
---


Comment on Re: perl script & perl program
Re^2: perl script & perl program
by dsheroh (Parson) 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
Node Status?
node history
Node Type: note [id://838002]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2014-12-21 20:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (107 votes), past polls