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
Perl ref Functions
We all know that Perl has a reference concept: a group of data is actually a reference of another group of data. These references are called pointers. The first group of data stores the header address of the second group of data.
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
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
Perl object-oriented first let's take a look at the three basic definitions of Perl Object-Oriented Programming: 1. an "object" refers to a simple reference that "there is a way to know which class it belongs. (An object is a reference variable) 2.
Source:Http://www.cnblogs.com/itech/archive/2012/08/21/2649580.htmlPerl Object Oriented first let's look at three basic definitions of Perl object-oriented Programming: 1. An "object" refers to a simple reference that "has a way of knowing which
First, let's look at three basic definitions of Perl object-oriented programming:
1. An "object" refers to a simple reference that "there is a way to know which class it belongs to". (object is reference variable)2. A "class" refers to a simple
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
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.