Perl language--Simple description
A simple explanation
Perl language Full Name: Useful excerpts and report language | Morbid eclectic garbage list. The Perl name is not an abbreviation, but a retrospective.
Perl language History: Larry Wall (Larry Wall) The mid 1980s
Suitable for handling tasks: about 90% is related to word processing and 10% issues related to other things.
The Perl compiler has been provided by default on Mac OSX, which allows you to view the currently installed Perl version via the PERL-V command after opening the terminal.
Tested and found to be 5.18.
Second, the first Perl program
Requirements: output Hello Word wendingding!
1) Create a new text file such as hello.pl. The suffix of the description file is freely written.
2) write the program text in the text file as follows:
#!usr/bin/perl
Print "Hello word wendingding!\n";
Icon:
3) Open the terminal and go to the hello.pl file path
4) Execute Terminal command authorization: chmod u+x hello.pl
5) Compiling and running the program: Perl hello.pl
6) After entering the above instruction, the command line output Hello Word wendingding! words.
Icon:
Description
1) Recommend and encourage appropriate use of indentation to increase the readability of the program.
2) Comments can provide a simple explanation of the function of the code, starting from # to the end of the line.
Perl language--Simple description