如果剛開始學(xué)習(xí)Perl這門語言,那么本書就是你所需要的——不管你是一名程序員,還是系統(tǒng)管理員,抑或是網(wǎng)絡(luò)黑客。
《PERL語言入門(影印版 第7版 英文版)》被整整兩代Perl用戶昵稱為“小駱駝書”,《PERL語言入門(影印版 第7版 英文版)》根據(jù)作者從1991年開始的教學(xué)經(jīng)驗(yàn)積累匯聚而成,多年來十分暢銷。此次第7版涵蓋了新Perl5.24版本的變化。
Perl能在絕大多數(shù)平臺(tái)上完成幾乎所有任務(wù),不管是簡單的修修補(bǔ)補(bǔ),還是大型完備的網(wǎng)絡(luò)應(yīng)用。
《PERL語言入門(影印版 第7版 英文版)》從*基礎(chǔ)的開始,然后逐漸深入,讓你慢慢能夠自行編寫多至128行的程序——如今90%的Perl程序差不多都是這般大小。
《PERL語言入門(影印版 第7版 英文版)》每章都包含若干習(xí)題,幫助你鞏固消化剛學(xué)到的知識(shí)。也許其他書籍只是想著灌輸Perl編程的條條框框,但《PERL語言入門(影印版 第7版 英文版)》不同,我們希望把你培養(yǎng)成一名真正的Perl程序員。
preface
1. Introduction
Questions and Answers
Is This the Right Book for You?
Why Are There So Many Footnotes?
What About the Exercises and Their Answers?
What Do Those Numbers Mean at the Start'of the Exercise?
What If I'm a Perl Course Instructor?
What Does "Perl" Stand For?
Why Did Larry Create Perl?
Why Didn't Larry Just Use Some Other Language?
Is Perl Easy or Hard?
How Did Perl Get to Be So Popular?
What's Happening with Perl Now?
What's Perl Really Good For?
What Is Perl Not Good For?
How Can I Get Perl?
What Is CPAN?
How Can I Get Support for Perl?
Are There Any Other Kinds of Support?
What If I Find a Bug in Perl?
How Do I Make a Perl Program?
A Simple Program
What's Inside That Program?
How Do I Compile My Perl Program?
A Whirlwind Tour of Perl
Exercises
2. Scalar Data
Numbers
All Numbers Have the Same Format Internally
Integer Literals
Nondecimal Integer Literals
Floating-Point Literals
Numeric Operators
Strings
Single-Quoted String Literals
Double-Quoted String Literals
String Operators
Automatic Conversion Between Numbers and Strings
Perl's Built-In Warnings
Interpreting Nondecimal Numerals
Scalar Variables
Choosing Good Variable Names
Scalar Assignment
Compound Assignment Operators
Output with print
Interpolation of Scalar Variables into Strings
Creating Characters by Code Point
Operator Precedence and Associativity
Comparison Operators
The if Control Structure
Boolean Values
Getting User Input
The chomp Operator
The while Control Structure
The undef Value
The defined Function
Exercises
3. Lists and Arrays
Accessing Elements of an Array
Special Array Indices
List Literals
The qw Shortcut
List Assignment
The pop and push Operators
The shift and unshift Operators
The splice Operator
Interpolating Arrays into Strings
The foreach Control Structure
Perrs Favorite Default
……
4. Subroutines
5. Input and Output
6. Hashes
7. Regular Expressions
8. Matching With Regular Expressions
9. Processing Text With Regular Expressions
10. More Control Structures
11. Peri Modules
12. File Tests
13. Directory Operations
14. Strings and Sorting
15. Process Management
16. Some Advanced Peri Techniques
A. Exercise Answers
B. Beyond the Llama
C. A Unicode Primer
D. Experimental Features
Index