Starting a Perl Script
looks for your script in one of the following places:
- Specified line by line via
switches on the command line.
- Contained in the file specified by the first filename on the command line.
(Note that systems supporting the #! notation invoke interpreters this way.)
- Passed in implicitly via standard input.
This only works if there are no filename arguments -- to pass
arguments to a
script you must explicitly specify a - for the script name.
After locating your script,
compiles it to an internal form.
If the script is syntactically correct, it is executed.