This article mainly introduces the PHP expansion module pecl, pear and Perl differences, the need for friends can refer to the
A brief summary:
Pear: A written comparison specification, a foreign popular Toolbox code set
pecl:php expansion pack,
About the origins and characteristics of Perl and Python
Perl is the abbreviation of practical extraction and report Language, created by Larry Wall in 1987, originally designed to facilitate the processing of reports on UNIX, and has become a fully
Perl's original designer was Larry Wall (Larry Wall), which was published on December 18, 1987. Perl borrows the features of C, sed, awk, shell scripting, and many other programming languages. Larry Wall Published version 1.0 of the Perl scripting
-->
Several basic concepts of this application design are:Toolbox reuse: Use existing tools as much as possible;Simplify the running steps; without introducing too much business logic, the more satisfying the requirements are, the better.
So,
In the Perl language, there are two special and commonly used symbol QQ QW, respectively, explained as follows:
Qq{foobar} meaning for double quote string, interpolation variable
The equivalent of "Foobar"
Qw{foo Bar} means to decompose a string
Normally, the command is written when it needs to be exited, and the parameter-W is immediately written.
This profile is an important environment variable configuration file for Linux.
Command completion:
After you enter user, the
Usually is occasionally used, more fragmented, slightly inattentive and shell,sed,awk some mixed feelings, thought or lay a good foundation, recognize function first;
So start ...
Today, first of all, outline the content of the study:
1. What is
Perl-defined variables are global by default
1) My role: the name and value of the variable are limited to a range, that is, the variable can only be the module or function
You can see this variable, a layer or a lower layer is not visible.
2 Our
Perl is generally considered to be the abbreviation for practical extraction and report Language, a language evolved from C and sed, awk, Unix shell, and other languages. It was originally invented and implemented by the linguist Larry Wall. Perl is
Perl-$_ and @_ Perl ' a great language for special Variables-variables this are set up without the programmer has t o intervene and providing information ranging from the number of lines read to the current input file ($.) through the C Urrent
Perl|window first step, prepare the required files.
Setting up PHP Local development for Windows is actually very simple, but the documentation for the use of these software is very difficult to understand and is in English. The following is a
Perl Arraysa Perl array is a list variable that stores scalar values, and variables can be of different types. array variables begin with @. Access array elements are read using the $ + variable name + [index value] format. 1. Creating an array1.
This is a 5 special block of code. The key to understanding these blocks is a few points in time:
(1). During program compilation
(2). During program execution
(3). program execution ended but not yet exited
Begin Block
Name Conflict issues
If you use require in SUM2.PM to import a code file SUM1.PM:
#!/usr/bin/env perluse strict;use warnings;use 5.010;require '/perlapp/sum1.pm';sub sum { say "sum2: sum()";}1;
If there is also a sum subroutine in sum1.pm:
Regular Expressions two articles:
The basic regular
Perl Regular
This article is a bit of an extension of Perl regular, with the main content being the use of qr// creating regular objects, and some other tricks.qr//creating a
In Perl, references to subroutines are often used to make callback functions (callback), closures (closure), especially anonymous subroutines.callback function (callback)For a callback function, see the article Understand: lexical scope, dynamic
Subroutines also have references, as well as anonymous subroutines. Suppose you already have an array, hash reference knowledge, so here is a brief introduction.$ref_sub = \&mysub; # 子程序引用,&符号必须不能少&{$ref_sub}(ARGS) #
Practical Extraction and Report Language
Perl was originally designed by Larry Wall in December 18, 1987. Perl uses the features of C, sed, awk, shell scripting, and many other programming languages.
Perl is generally called the Practical
This error was reported when CPAN was used to install the Term: ReadLine.Going to read/root/. cpan/sources/modules/03modlist.data.gzCan't locate object method "data" via package "CPAN: Modulelist" (perhaps you forgot to load "CPAN: Modulelist "?) At
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.