Perl by Example, 4/e (Paperback)
暫譯: 範例學習 Perl 第四版 (平裝本)
Ellie Quigley
- 出版商: Prentice Hall
- 出版日期: 2007-11-15
- 售價: $2,220
- 貴賓價: 9.5 折 $2,109
- 語言: 英文
- 頁數: 1008
- 裝訂: Paperback
- ISBN: 0132381826
- ISBN-13: 9780132381826
-
相關分類:
Perl 程式語言
已過版
買這商品的人也買了...
-
$760$646 -
$880$695 -
$880$695 -
$550$435 -
$1,080$1,026 -
$690$587 -
$980$774 -
$1,200$948 -
$620$490 -
$350$298 -
$990$891 -
$600$480 -
$720$569 -
$1,180$932 -
$980$774 -
$420$357 -
$1,200$948 -
$580$458 -
$520$411 -
$820$648 -
$890$757 -
$490$417 -
$450$351 -
$650$514 -
$580$452
商品描述
Description
The World’s Easiest Perl Tutorial–Fully Updated!
Perl by Example, Fourth Edition, is the easiest, most hands-on way to learn Perl. Legendary Silicon Valley programming instructor Ellie Quigley has thoroughly updated her classic to deliver the skills and information today’s Perl users need most–including all-new coverage of MySQL database programming and a Perl QuickStart designed to get experienced users up and running fast.
Quigley illuminates every technique with focused, classroom-tested code examples, detailed line-by-line explanations, and real program output. This exceptionally clear, easy-to-understand book takes you from your first Perl script to database-driven applications. It’s the only Perl book you’ll ever need!
New in this edition:
Perl programming QuickStart: makes first-time Perl programmers productive in just twenty pages
All-new chapter on using the Perl DBI with the MySQL database–plus an easy SQL primer to quickly get you started programming any database
New introductions to Perl in biology (bioinformatics) and to mod_perl, a Perl interpreter embedded in the Apache server, which allows you to create fast, dynamic content; manage the Apache server; authenticate users; and much more
Completely updated:
Includes many new and completely rewritten code examples
Contains fully revised CGI coverage for building dynamic Web sites with Perl
Covers modern Perl 5.8 concepts and principles–and provides a great foundation for Perl 6
More than 30,000 sysadmins, power users, and developers have used previous editions of Perl by Example
to become expert Perl programmers. With Perl by Example, Fourth Edition, you can, too–even if you’re
completely new to Perl. After you’ve become an expert, you’ll turn to this book constantly as the best
source for reliable answers, solutions, and code.
About the CD-ROM:
The CD-ROM includes all code and files for this book’s hundreds of example scripts.
Table of Contents
Preface xxvii
Chapter 1: The Practical Extraction and Report Language 1
1.1 What Is Perl? 1
1.2 What Is an Interpreted Language? 2
1.3 Who Uses Perl? 3
1.4 Where to Get Perl 5
1.5 What Is CPAN? 9
1.6 Perl Documentation 10
1.7 What You Should Know 12
1.8 What’s Next? 12
Chapter 2: Perl Quick Start 13
2.1 Quick Start, Quick Reference 13
2.2 Chapter Summary 29
2.3 What’s Next? 29
Chapter 3: Perl Scripts 31
3.1 Script Setup 31
3.2 The Script 32
3.3 Perl at the Command Line 39
3.4 What You Should Know 43
3.5 What’s Next? 43
Chapter 4: Getting a Handle on Printing 45
4.1 The Filehandle 45
4.2 Words 45
4.3 The print Function 46
4.4 The printf Function 59
4.5 What You Should Know 66
4.6 What’s Next? 66
Chapter 5: What’s in a Name 69
5.1 About Perl Variables 69
5.2 Scalars, Arrays, and Hashes 77
5.3 Reading from STDIN 94
5.4 Array Functions 100
5.5 Hash (Associative Array) Functions 118
5.6 More Hashes 128
5.7 What You Should Know 132
5.8 What’s Next? 133
Chapter 6: Where’s the Operator? 137
6.1 About Perl Operators 137
6.2 Mixing Data Types 138
6.3 Precedence and Associativity 139
6.4 What You Should Know 168
6.5 What’s Next? 168
Chapter 7: If Only, Unconditionally, Forever 171
7.1 Control Structures, Blocks, and Compound Statements 171
7.2 Repetition with Loops 177
7.3 What You Should Know 200
7.4 What’s Next? 200
Chapter 8: Regular Expressions–Pattern Matching 203
8.1 What Is a Regular Expression? 203
8.2 Expression Modifiers and Simple Statements 204
8.3 Regular Expression Operators 210
8.4 What You Should Know 232
8.5 What’s Next? 232
Chapter 9: Getting Control–Regular Expression Metacharacters 235
9.1 Regular Expression Metacharacters 235
9.2 Unicode 281
9.3 What You Should Know 283
9.4 What’s Next? 283
Chapter 10: Getting a Handle on Files 285
10.1 The User-Defined Filehandle 285
10.2 Passing Arguments 310
10.3 File Testing 319
10.4 What You Should Know 321
10.5 What’s Next? 322
Chapter 11: How Do Subroutines Function? 325
11.1 Subroutines/Functions 325
11.2 Passing Arguments 330
11.3 Call-by-Reference 344
11.4 What You Should Know 358
11.5 What’s Next? 359
Chapter 12: Modularize It, Package It, and Send It to the Library! 363
12.1 Packages and Modules 363
12.2 The Standard Perl Library 370
12.3 Modules from CPAN 390
12.4 What You Should Know 398
12.5 What’s Next? 398
Chapter 13: Does This Job Require a Reference? 401
13.1 What Is a Reference? What Is a Pointer? 401
13.2 What You Should Know 420
13.3 What’s Next? 420
Chapter 14: Bless Those Things! (Object-Oriented Perl) 423
14.1 The OOP Paradigm 423
14.2 Classes, Objects, and Methods 425
14.3 Anonymous Subroutines, Closures, and Privacy 453
14.4 Inheritance 460
14.5 Public User Interface–Documenting Classes 474
14.6 Using Objects from the Perl Library 479
14.7 What You Should Know 484
14.8 What’s Next? 485
Chapter 15: Those Magic Ties and DBM Stuff 493
15.1 Tying Variables to a Class 493
15.2 DBM Files 505
15.3 What You Should Know 512
15.4 What’s Next? 512
Chapter 16: CGI and Perl: The Hyper Dynamic Duo 513
16.1 Static and Dynamic Web Pages 513
16.2 How It all Works 516
16.3 Creating a Web Page with HTML 522
16.4 How HTML and CGI Work Together 526
16.5 Getting Information Into and Out of the CGI Script 531
16.6 CGI and Forms 535
16.7 The CGI.pm Module 559
Chapter 17: Perl Meets MySQL–A Perfect Connection 603
17.1 Introduction 603
17.2 What Is a Relational Database? 604
17.3 Getting Started with MySQL 613
17.4 What Is the Perl DBI? 638
17.5 Statements that Don’t Return Anything 666
17.6 Transactions 670
17.7 Using CGI and the DBI to Select and Display Entries 672
17.8 What’s Left? 678
17.9 What You Should Know 679
17.10What’s Next? 679
Chapter 18: Interfacing with the System 685
18.1 System Calls 685
18.2 Processes 721
18.3 Other Ways to Interface with the Operating System 747
18.4 Error Handling 755
18.5 Signals 760
18.6 What You Should Know 764
18.7 What’s Next? 765
Chapter 19: Report Writing with Pictures 767
19.1 The Template 767
19.2 What You Should Know 783
19.3 What’s Next? 783
Chapter 20: Send It Over the Net and Sock It to ’Em! 785
20.1 Networking and Perl 785
20.2 Client /Server Model 785
20.3 Network Protocols (TCP/IP) 785
20.4 Network Addressing 787
20.5 Sockets 794
20.6 Client /Server Programs 800
20.7 The Socket.pm Module 808
20.8 What You Should Know 813
Appendix A: Perl Built-ins, Pragmas, Modules, and the Debugger 815
A.1 Perl Functions 815
A.2 Special Variables 845
A.3 Perl Pragmas 848
A.4 Perl Modules 850
A.5 Command-Line Switches 856
A.6 Debugger 858
Appendix B: SQL Language Tutorial 863
B.1 What Is SQL? 863
B.2 SQL Data Manipulation Language (DML) 871
B.3 SQL Data Definition Language 888
B.4 SQL Functions 901
B.5 Appendix Summary 910
B.6 What You Should Know 910
Appendix C: Perl and Biology 915
C.1 What Is Bioinformatics? 915
C.2 A Little Background on DNA 915
C.3 Some Perl Examples 917
C.4 What Is BioPerl? 919
C.5 Resources 923
Appendix D: Power and Speed: CGI and mod_perl 925
D.1 What Is mod_perl? 925
D.2 The mod_perl Web Site 927
D.3 Installing mod_perl 928
D.4 Resources 938
Index 939
商品描述(中文翻譯)
**描述**
**世界上最簡單的 Perl 教學 - 完全更新!**
《Perl by Example, Fourth Edition》是學習 Perl 最簡單、最實用的方法。傳奇的矽谷程式設計講師 Ellie Quigley 徹底更新了她的經典著作,提供當今 Perl 使用者最需要的技能和資訊,包括全新的 MySQL 資料庫程式設計內容,以及一個旨在讓有經驗的使用者快速上手的 Perl 快速入門。
Quigley 用專注的、經過課堂測試的程式碼範例、詳細的逐行解釋和真實的程式輸出來闡明每一個技術。這本異常清晰、易於理解的書籍將帶你從第一個 Perl 腳本到資料庫驅動的應用程式。這是你所需的唯一 Perl 書籍!
**本版新內容:**
- Perl 程式設計快速入門:讓初學者在僅僅二十頁內變得高效
- 全新章節介紹如何使用 Perl DBI 與 MySQL 資料庫 - 以及一個簡易的 SQL 入門,讓你快速開始任何資料庫的程式設計
- 新增生物學(生物資訊學)和 mod_perl 的介紹,mod_perl 是嵌入在 Apache 伺服器中的 Perl 解譯器,允許你創建快速、動態的內容;管理 Apache 伺服器;驗證使用者;等等
**完全更新:**
- 包含許多全新且完全重寫的程式碼範例
- 包含全面修訂的 CGI 內容,用於使用 Perl 建立動態網站
- 涵蓋現代 Perl 5.8 的概念和原則 - 並為 Perl 6 提供良好的基礎
超過 30,000 名系統管理員、權限使用者和開發者已經使用過《Perl by Example》的前幾版,成為專業的 Perl 程式設計師。透過《Perl by Example, Fourth Edition》,你也可以做到 - 即使你對 Perl 完全陌生。在你成為專家之後,你會不斷參考這本書,作為獲得可靠答案、解決方案和程式碼的最佳來源。
**關於 CD-ROM:**
CD-ROM 包含本書數百個範例腳本的所有程式碼和檔案。
**目錄**
前言 xxvii
第一章:實用的提取和報告語言 1
1.1 什麼是 Perl? 1
1.2 什麼是解譯語言? 2
1.3 誰在使用 Perl? 3
1.4 從哪裡獲得 Perl 5
1.5 什麼是 CPAN? 9
1.6 Perl 文檔 10
1.7 你應該知道什麼 12
1.8 接下來是什麼? 12
第二章:Perl 快速入門 13
2.1 快速入門,快速參考 13
2.2 章節摘要 29
2.3 接下來是什麼? 29
第三章:Perl 腳本 31
3.1 腳本設置 31
3.2 腳本 32
3.3 命令行中的 Perl 39
3.4 你應該知道什麼 43
3.5 接下來是什麼? 43
第四章:掌握打印 45
4.1 文件句柄 45
4.2 字詞 45
4.3 print 函數 46
4.4 printf 函數 59
4.5 你應該知道什麼 66
4.6 接下來是什麼? 66
第五章:名字的意義 69
5.1 有關 Perl 變數 69
5.2 標量、數組和哈希 77
5.3 從 STDIN 讀取 94
5.4 數組函數 100
5.5 哈希(關聯數組)函數 118
5.6 更多哈希 128
5.7 你應該知道什麼 132
5.8 接下來是什麼? 133
第六章:運算子在哪裡? 137
6.1 有關 Perl 運算子的介紹 137
6.2 混合數據類型 138
6.3 優先級和結合性 139
6.4 你應該知道什麼 168
6.5 接下來是什麼? 168
第七章:如果只有,無條件,永遠 171
7.1 控制結構、區塊和複合語句 171
7.2 使用循環重複 177
7.3 你應該知道什麼 200
7.4 接下來是什麼? 200
第八章:正則表達式 - 模式匹配 203
8.1 什麼是正則表達式? 203
8.2 表達式修飾符和簡單語句 204
8.3 正則表達式運算子 210
8.4 你應該知道什麼 232
8.5 接下來是什麼? 232
第九章:獲得控制 - 正則表達式元字符 235
9.1 正則表達式元字符 235
9.2 Unicode 281
9.3 你應該知道什麼 283
9.4 接下來是什麼? 283