Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: perl script & perl program

by Krambambuli (Curate)
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.



Replies are listed 'Best First'.
Re^2: perl script & perl program
by dsheroh (Prior) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://838002]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2018-04-25 01:21 GMT
Find Nodes?
    Voting Booth?