作者:brian d foy
出版日期:July 1, 2007
出版社:O'Reilly
页数:322
ISBN:978-0596527242
文件格式:PDF
This is the third in O’Reilly’s series of landmark Perl tutorials,which started with Learning Perl, the bestselling introduction thattaught you the basics of Perl syntax, and Intermediate Perl, whichtaught you how to create re-usable Perl software. Mastering Perl pullseverything together to show you how to bend Perl to your will. Itconvey’s Perl’s special models and programming idioms. This book isn’ta collection of clever tricks, but a way of thinking about Perlprogramming so you can integrate the real-life problems of debugging,maintenance, configuration, and other tasks you encounter as a workingprogrammer. The book explains how to: Use advanced regular expressions,including global matches, lookarounds, readable regexes, and regexdebugging Avoid common programing problems with secure programmingtechniques Profile and benchmark Perl to find out where to focus yourimprovements Wrangle Perl code to make it more presentable and readableSee how Perl keeps track of package variables and how you can use thatfor some powerful tricks Define subroutines on the fly and turn thetables on normal procedural programming. Modify and jury rig modules tofix code without editing the original source Let your users configureyour programs without touching the code Learn how you can detect errorsPerl doesn’t report, and how to tell users about them Let your Perlprogram talk back to you by using Log4perl Store data for later use inanother program, a later run of the same program, or to send them overa network Write programs as modules to get the benefit of Perl’sdistribution and testing tools Appendices include “brian’s Guide toSolving Any Perl Problem” to improve yourtroubleshooting skills, aswell as suggested reading to continue your Perl education. MasteringPerl starts you on your path to becoming the person with the answers,and, failing that, the person who knows how to find the answers ordiscover the problem.