Mastering Perl (Paperback)
暫譯: 精通 Perl (平裝本)

brian d foy

買這商品的人也買了...

相關主題

商品描述

Description

This is the third in O'Reilly's series of landmark Perl tutorials, which started with Learning Perl, the bestselling introduction that taught you the basics of Perl syntax, and Intermediate Perl, which taught you how to create re-usable Perl software. Mastering Perl pulls everything together to show you how to bend Perl to your will. It convey's Perl's special models and programming idioms.

This book isn't a collection of clever tricks, but a way of thinking about Perl programming so you can integrate the real-life problems of debugging, maintenance, configuration, and other tasks you encounter as a working programmer.

The book explains how to:

  • Use advanced regular expressions, including global matches, lookarounds, readable regexes, and regex debugging
  • Avoid common programing problems with secure programming techniques
  • Profile and benchmark Perl to find out where to focus your improvements
  • Wrangle Perl code to make it more presentable and readable
  • See how Perl keeps track of package variables and how you can use that for some powerful tricks
  • Define subroutines on the fly and turn the tables on normal procedural programming.
  • Modify and jury rig modules to fix code without editing the original source
  • Let your users configure your programs without touching the code
  • Learn how you can detect errors Perl doesn't report, and how to tell users about them
  • Let your Perl program talk back to you by using Log4perl
  • Store data for later use in another program, a later run of the same program, or to send them over a network
  • Write programs as modules to get the benefit of Perl's distribution and testing tools

 

商品描述(中文翻譯)

### 描述

這是 O'Reilly 系列重要 Perl 教學的第三本書,該系列始於《Learning Perl》,這本暢銷的入門書教你 Perl 語法的基本知識,接著是《Intermediate Perl》,教你如何創建可重用的 Perl 軟體。《Mastering Perl》將所有內容整合在一起,展示如何讓 Perl 服從你的意志。它傳達了 Perl 的特殊模型和編程慣用法。

這本書不是一系列巧妙的技巧,而是一種思考 Perl 編程的方式,讓你能夠整合作為一名工作程序員所遇到的調試、維護、配置及其他任務的現實問題。

本書解釋了如何:

- 使用進階的正則表達式,包括全域匹配、環顧、可讀的正則表達式和正則表達式調試
- 避免常見的編程問題,使用安全編程技術
- 對 Perl 進行性能分析和基準測試,以找出改進的重點
- 整理 Perl 代碼,使其更具可讀性和可展示性
- 了解 Perl 如何追蹤包變數,以及如何利用這一點來實現一些強大的技巧
- 動態定義子程序,顛覆傳統的程序編程
- 修改和臨時修補模組,以在不編輯原始源代碼的情況下修復代碼
- 讓用戶在不接觸代碼的情況下配置你的程序
- 學習如何檢測 Perl 不報告的錯誤,以及如何告知用戶
- 讓你的 Perl 程序通過使用 Log4perl 與你對話
- 儲存數據以便在另一個程序中使用、在同一程序的後續運行中使用,或通過網絡發送
- 將程序編寫為模組,以獲得 Perl 的分發和測試工具的好處