one. DataType (data type ):Perl's data types are roughly four: Scalar (variables), Scalar Array (array), hash array (hash), References (pointer), but they seem to be small but more than sufficient. In particular, you can write a Perl program without
I. Data Types(Data type):
Perl has four data types: Scalar (variable), Scalar Array (Array), Hash Array (Hash), and References (pointer ), it seems to be rare, but it is more than enough to use it. Especially when writing Perl programs, you do not
Arithmetic operators: + (plus),-(minus), * (multiply),/(except), * * (Power),% (take more),-(Monocular negative)
(1) The cardinality of the power can not be negative, such as ( -5) * * 2.5 # error;
(2) The result of power can not exceed the limit of
One, arithmetic operators* *: is a power result cannot exceed a range when the exponent is a decimal, the base cannot be a negative number%: The number of operands on both sides of the remainder is an integer, if not to intercept, to remove all the
Perl is still less than that. Watching video is quite handy when getting started, just like a movie. I basically superor the teacher every episode I have read. I hope everyone will take a look at it.
Remember, learn to write more, can only see
1. Simple Variables
==============
1. Integer$ X = 123456;Perl stores integer data in floating-point registers. In fact, integer variables are treated as floating-point numbers in Perl, but they are only a special column of floating-point data.The
Chapter Two: Code deployment 00.the curly braces and parentheses are represented in the K&r style. ThatMy @name = (' Damian ',' Matthew ');For my $name (@names) {Formy $word (anagrams_of (LC $name)) {print "$wor \ n";}} 00 Ii.the control keyword and
Operator Precedence
Each programming language has operators, and operators learn to use them flexibly.
Operators have different precedence and binding orientations.
2.4 Expression evaluation and type conversionMySQL allows you to write expressions that include constants, function calls, and table-column references. These values can be grouped using different types of operators, such as arithmetic or comparison
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.