Perl Language Primer (Chinese Version) (6th edition) Southeast University Press

Source: Internet
Author: User
Tags scalar

Introduction to the first chapter
Questions and Answers
Does this book suit you?
Why are there so many footnotes?
About exercises and answers?
What do the numbers in the exercises ' front mark mean?
What if I'm a Perl lecturer?
What does the word "Perl" mean?
Why does Larry want to create Perl?
Why doesn't Larry use other languages?
Is Perl easy, or is it difficult?
How can perl be so popular?
How is Perl developing now?
What are the most appropriate things to do with Perl?
What is not suitable for Perl?
How do I get perl?
What is CPAN?
How do I get technical support for Perl?
Is there any other way of technical support?
What should I do if I find a bug in Perl?
How do I write a Perl program?
A simple program
What is written in the program?
How do I compile the Perl program?
Quick Walkthrough
Chapter II Scalar data
All numbers have the same internal format
Floating Point Direct quantity
Integer Direct Quantity
The direct amount of a non-+-binary integer
numeric operators
The direct amount of a string within a single quotation mark
String Direct amount within double quotation marks
String operator
Automatic conversion between numbers and strings
Built-in warning messages for Perl
Scalar variables
Take a good name for a variable
The assignment of scalar value
Binocular assignment operator
Output results with Print
Scalar variable interpolation in a string
Creating characters with code points
The precedence and associativity of operators
Comparison operators
If control structure
Boolean value
Get user input
Chomp operator
While control structure
undef value
Defined function
Chapter III list and array
Accessing elements in an array
A special array index
List Direct Quantity
QW Shorthand
Assigning values to lists
Pop and push operators
Shift and UNSHIFT operators
Splice operator
Array interpolation in a string
foreach Control structure
Perl's favorite default variable: $_
Reverse operator
Sort operator
Each operator
Scalar context and List context
Using the expression that produces the list in a scalar context
Using an expression that produces a scalar in the context of a list
Forcing the specified scalar context
In the list context
Fourth Zhang Ziyi (procedure
Define subroutines
Calling a sub-program
return value
Private variables in sub-programs
Variable-length parameter list
Improved &max sub-program
Empty argument list
About lexical (my) variables
Use strict compilation instructions
return operator
Ellipsis and number
Non-scalar return value
Persisting private variables
Fifth chapter input and output
Reading standard input
Input from the diamond operator
Calling parameters
Output to standard output
jnprintf formatted output
Arrays and printf
File handle
Open File Handle
Read and write file handles in binary mode
Problematic file handle
Close file handle
Handle fatal errors with die
Output warning message with warn
Automatic detection of fatal errors
Working with file handles
Change the default file output handle
Reopen standard file handle
Use say to Output
Sixth Chapter Hash
Seventh chapter roaming the regular expression kingdom
The eighth chapter matches with regular expressions
Nineth. Working with regular expressions for text
Tenth chapter other control structures
Chapter 11th Perl Modules
12th. Document Testing
13th Directory Operations
14th Chapter String and sort
15th Chapter Intelligent Matching and Given-when structure
Chapter 16th Process Management
17th Chapter Advanced Perl Tips

Perl Language Primer (Chinese Version) (6th edition) Southeast University Press

Related Article

Contact Us

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: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.