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
Chapter 2: References
References are declared as scalar types (named variables starting with $), and reference is obtained using the \ operator.
Modifying the referenced variable is equivalent to modifying the reference pointing to the
This is notes from reading the "Object Oriented Perl programming ".
Elements of the @ _ array are special in that they are not copies of the actual arguments of the function call. rather they are aliases for those arguments. that means that if
I. Introduction of the ModuleModule is the Perl package. The Perl object is based on a reference to the data item in the package.When you use object-oriented programming in other languages, you declare a class and then create an object (instance) of
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) #
Syntax
There are only two ways to create a 'quot.
Create reference
Create Rule 1If you add a '/' sign before a variable, you will get the 'quota' of the variable '.
$ Aref = // @ array; # $ Aref saves the 'quot' pointing to @ Array'$ Href =/% hash;
GrammarThere are only two ways to create ' references ', and they are two.
Creating references
Create Rule 1If you add a '/' number in front of a variable, you get a ' reference ' to the variable.
$aref =/@array; # $aref Keep a ' reference ' to
Advantages and disadvantages of Python and Perl, and advantages and disadvantages of pythonperl
I. Comparison between Python and Perl
(1) The initial purpose of designing a language determines the built-in functions of the language:
Perl was
Reference: http://shouce.jb51.net/perl5/Web site environment configuration: http://www.jb51.net/article/74005.htm
The basic syntax of Perl http://www.jb51.net/shouce/Perl.htm
Preface: What is Perl, and what is it used for? Perl's original designer'
One: Python vs. Perl(1) The initial purpose of designing a language determines what features the language will be built in:Perl was originally created for the formatting of text, so the built-in regular, Python built a complex type, guess Guido
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.