What is Perl

Source: Internet
Author: User

1. What is Perl?
Perl is short for Practical Extraction and report language. It is designed and maintained by Larry Wall and is used for programming in UNIX environments.
. Perl has the power and flexibility of advanced languages (such as C. In fact, you will see that many of its features are borrowed from the C language.
. Like the scripting language, Perl does not need to be run by the compiler or linker. Code All you have to do is write Program And tell Perl to run it. This means Perl is ideal for rapid solutions to small programming problems and for creating prototypes for large events to test potential solutions.
. Perl provides all the features of the scripting language (such as SED and awk), and has many features that they do not have. Perl also supports translator from sed to Perl and from AWD to Perl.
In short, Perl is as powerful as C and as convenient as script descriptive languages such as awk and sed.
2. Where is Perl?
Perl is usually located in/usr/local/bin/Perl or/usr/bin/Perl. You can use anonymous FTP on the Internet for free, such as ftp://prep.ai.mit.edu/pub/gnu/perl-5.004.tar.gz.
The installation process is as follows:
(1) extract:
$ Gunzip perl-5.004.tar.gz
$ Tar xvf-perl-5.004.tar.gz
(2) Compile:
$ Make makefile
(3) Placement:
Copy the compiled executable file to the normal directory of the executable file, for example:
$ Copy <compiled excutable File>/usr/local/bin/perl
Note: This requires the system administrator privilege.

North America

Address Directory
Ftp.netlabs.com IP Address: 192.94.48.152
Directory/pub/outgoing/perl5.0
Ftp.cis.ufl.edu IP Address: 128.227.100.198
Directory/pub/perl/src/5.0
Ftp.u.net IP Address: 192.48.96.9
Directory/ages/perl
Ftp.horos.unm.edu IP Address: 198.59.155.28
Directory/pub/perl
Ftp.cbi.tamucc.edu IP Address: 165.95.1.3
Directory/pub/Duff/perl
Ftp.metronet.com IP Address: 192.245.137.1
Directory/pub/perl/sources
Genetics.upenn.edu IP Address: 128.91.200.37
Directory/perl5

Europe

Site Location
FTP. cs. ruu. nl IP Address: 131.211.80.17
Directory/pub/perl/perl5.0/src
FTP. funet. fi IP Address: 128.214.248.6
Directory/pub/ages/perl/ports/perl5
Ftp.zrz.tu-berlin.de IP Address: 130.149.4.40
Directory/pub/Unix/perl
Src.doc. IC. ac. uk IP Address: 146.169.17.5
Directory/packages/perl5

Australia

Site Location
Sungear. Mame. Mu. Oz. au IP Address: 128.250.209.2
Directory/pub/perl/src/5.0

South America

Site Location
FTP. INF. utfsm. cl IP Address: 146.83.198.3
Directory/pub/gnu

3. Run
edit your Perl program in a text editor, and run the following command: $ chmod + x : $. / . If the system prompts "/usr/local/bin/perl not found", the installation is not successful. Please reinstall it.
note: the first line of your program must be #! /Usr/local/bin/perl (Perl location ).
4. Comment:
the comment method is to use the character # At the beginning of the statement, for example:
# This line is a comment
note: it is recommended that you often use annotations to make your program readable. This is a good programming habit.

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.