In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "what is Perl", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn this article "what is Perl?"
What is Perl?
Perl is an acronym for PracticalExtractionandReportLanguage, designed by LarryWall and constantly updated and maintained by him for programming in the UNIX environment.
◆ Perl has the power and flexibility of high-level languages such as C #. In fact, you will see that many of its features are borrowed from the C language.
◆ is like scripting languages, Perl doesn't need compilers and linkers to run code, all you have to do is write the program and tell Perl to run it. This means that Perl is ideal for quick solutions to small programming problems and for prototyping large events to test potential solutions.
◆ Perl provides all the features of scripting languages such as sed and awk, as well as many features that they do not have. Perl also supports sed to Perl and awd to Perl translators in the introduction to Perl getting started.
In short, Perl is as powerful as C and as convenient as scripting languages such as awk and sed.
2. Where is Perl?
Perl ftp://prep.ai.mit.edu/pub/gnu/perl-5.004.tar.gz in the Perl getting started manual.
The installation process is usually located in / usr/local/bin/perl or / usr/bin/perl. You can get it for free at Internet using anonymous FTP, such as
(1) decompress:
$gunzipperl-5.004.tar.gz
$tarxvfperl-5.004.tar.gz
(2) configuration:
$Configure
(3) compile:
$make
$maketest
$makeinstall
(4) place:
Copy the compiled executable to the directory where the executable is usually located, such as:
$copy/usr/local/bin/perl
Note: this requires system administrator privileges.
III. Operation
In the Perl getting started manual, the runtime edits your Perl program with a text editor, plus the executable attribute: $chmod+x can be executed: $. /. If the system prompts: "/ usr/local/bin/perlnotfound", then you did not install successfully, please reinstall.
Note: the * * line of your program must be #! / usr/local/bin/perl (where the perl is located).
IV. Notes:
Perl comments are made by using the character # at the beginning of the statement, such as # thislineisacomment
Note: it is recommended that you often use comments to make your program easy to read, which is a good programming habit.
The above is all the content of this article "what is Perl?" thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 269
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.