Mastering Perl (Paperback)

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教程的第三本,該系列始於暢銷書《學習Perl》,該書教授了Perl語法的基礎知識,接著是《中級Perl》,該書教授了如何創建可重用的Perl軟件。《精通Perl》將所有內容結合在一起,向您展示如何將Perl彎曲為您所需。它傳達了Perl的特殊模型和編程慣例。

這本書不是一本聰明技巧的集合,而是一種思考Perl編程的方式,讓您能夠將調試、維護、配置和其他作為工作程序員遇到的真實問題整合在一起。

本書解釋了如何:



  • 使用高級正則表達式,包括全局匹配、lookarounds、可讀的正則表達式和正則表達式調試

  • 使用安全編程技術避免常見的編程問題

  • 對Perl進行性能分析和基準測試,找出需要改進的地方

  • 整理Perl代碼,使其更易讀和呈現

  • 了解Perl如何跟踪包變量,以及如何使用它進行一些強大的技巧

  • 即時定義子程序,改變常規的過程式編程方式

  • 修改和修補模塊,修復代碼而無需編輯原始代碼

  • 讓用戶在不觸碰代碼的情況下配置您的程序

  • 了解如何檢測Perl未報告的錯誤,以及如何告知用戶

  • 通過使用Log4perl讓您的Perl程序回應您

  • 存儲數據以供稍後在另一個程序中使用,或在同一程序的後續運行中使用,或將其發送到網絡上

  • 將程序編寫為模塊,以獲得Perl的分發和測試工具的好處