Intermediate Perl, 2/e (Paperback)

Randal L. Schwartz, brian d foy, Tom Phoenix



This book picks up right where Learning Perl leaves off. With Intermediate Perl, you’ll graduate from short scripts to much larger programs, using features that make Perl a general-purpose language. This gentle but thorough guide introduces you to modules, complex data structures, and object-oriented programming.

Each chapter is small enough to be read in just an hour or two, ending with exercises to help you practice what you’ve learned. If you’re familiar with the material in Learning Perl and have the ambition to go further, Intermediate Perl will teach you most of the core Perl language concepts you need for writing robust programs on any platform.

Topics include:

  • Packages and namespaces
  • References and scoping, including regular expression references
  • Manipulating complex data structures
  • Object-oriented programming
  • Writing and using modules
  • Testing Perl code
  • Contributing to CPAN

Just like Learning Perl, material in this book closely follows the popular introductory Perl course the authors have taught since 1991. This second edition covers recent changes to the language up to version 5.14.


這本書接續《學習 Perl》的內容,從短腳本進階到更大型的程式,使用 Perl 的通用功能。這本溫和但詳盡的指南介紹了模組、複雜的資料結構和物件導向程式設計。

每個章節都足夠小,可以在一兩個小時內閱讀完畢,並附有練習題,幫助你練習所學的知識。如果你已經熟悉《學習 Perl》中的內容,並且有進一步學習的意願,這本《中級 Perl》將教授你撰寫跨平台強健程式所需的大部分核心 Perl 語言概念。

- 套件和命名空間
- 參考和範疇,包括正規表達式參考
- 操作複雜的資料結構
- 物件導向程式設計
- 撰寫和使用模組
- 測試 Perl 程式碼
- 貢獻至 CPAN

就像《學習 Perl》一樣,本書的內容緊密追隨作者自 1991 年以來所教授的受歡迎 Perl 入門課程。這本第二版涵蓋了截至 5.14 版本的語言最新變化。