in reply to "perl script.pl args" or "script.pl args"
Neither!
I consider it a rather large mistake to have a tool that you invoke via either "perl ..." or "....pl ...". I often make improvements to tools that result in them being implemented in different languages. A tool might start out as a shell script or batch file and later become a Perl script and then a compiled executable (sometimes these transition even happen in the other direction). I just want to use the tool, using a descriptive name. I don't want to think about what language it happens to have been implemented in this week.
And I really don't want to worry about updating a bunch of other tools that make use of that tool just because I decide to change implementation language.
For me, the *.pl file is the source code for the script. It starts with "#!/usr/bin/perl" plus whatever options the script needs. Then there is the install process that does the follow things on Unix:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re2: "perl script.pl args" or "script.pl args" (neither/install)
by dragonchild (Archbishop) on Jul 18, 2003 at 16:11 UTC | |
|
Re^2: "perl script.pl args" or "script.pl args" (neither/install)
by Aristotle (Chancellor) on Jul 23, 2003 at 00:52 UTC |