Perl language--Simple description

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.