in an array named Sys.argv and the exit status is 0 by default. Example: print_endline "Hello World" Pascal In Pascal, the main procedure is the only unnamed block in the program. Because Pascal programs define procedures and functions in a more rigorous bottom-up order than C, C++ or Java programs, the main procedure is usually the last block in the program. Pascal does not have a special meaning for the name "main" or any similar name. program Hello(Output); begin writeln('Hello, world!'); end. Command-line arguments are counted in ParamCount and accessible as strings by ParamStr(n), with n between 0 and ParamCount. Versions of Pascal that support units or modules may also contain an unnamed block in each, which is used to initialize the module. These blocks are executed before the main program entry point is called. Perl In Perl, there is no main function. Statements are executed from top to bottom, although statements in a BEGIN block are executed before normal statements. Command-line arguments are available in the special array @ARGV. Unlike C, @ARGV does not contain the name of the program, which is $0. PHP PHP does not have a "main" function. Starting from the first line of a PHP script, any code not encapsulated by a function header is executed as soon as it is seen. Pike In Pike syntax is similar to that of C and C++. The execution begins at main. The "argc" variable keeps the number of arguments passed to the program. The "argv" variable holds the value associated with the arguments passed to the program. Example: int main(int argc, array(string) argv) Python Python programs are evaluated top-to-bottom, as is usual in scripting languages: the entry point is the start of the source code. Since definitions must precede use, programs are typically structured with definitions at the top and the code to execute at the bottom (unindented), similar to code for a one-pass compiler, such as in Pascal. Alternatively, a program can be structured with an explicit main function containing the code to be executed when a program is executed directly, but which can also be invoked by importing the program as a module and calling the function. This can be done by the following idiom, which relies on the internal variable __name__ being set to __main__ when a program is executed, but not when it is imported as a module (in which case it is