精通Perl:现代Perl第四版

需积分: 9 12 下载量 108 浏览量 更新于2024-07-19 收藏 803KB PDF 举报
"Modern Perl 4th Edition 2016" 是一本由 Perl 开发者 chromatic 编写的书籍,旨在教授读者如何使用现代 Perl 语言,特别针对 Perl 5.22 版本进行了更新。这本书不仅介绍了 Perl 的哲学基础,还详细解释了 Perl 的实际应用,帮助读者解决真实世界中的问题。chromatic 是 Perl 测试革命的推动者,对 Perl、Moose、Catalyst、Mojolicious 和 p5p 等项目的开发做出了贡献,并且参与制定了 Perl 的当前发布结构。 在《Modern Perl 4th Edition》中,读者将学习到: 1. **Perl 哲学**:Perl 的设计理念强调简洁、强大和实用性。书中会探讨如何通过有效的代码解决问题,以及如何在保持代码简洁的同时增强其表达性。 2. **Perl 文档系统(Perldoc)**:Perl 提供了一套内建的文档系统,允许开发者轻松获取关于函数、模块和语言特性的文档。了解如何使用 perldoc 命令是每个 Perl 开发者的必备技能。 3. **上下文(Context)**:Perl 中的值会根据它们被使用的上下文(如列表或标量上下文)而改变。理解这一点对于编写正确且高效代码至关重要。 4. **空值、标量和列表上下文**:书中会详细讲解这些上下文的概念,包括如何在不同上下文中返回适当的数据类型。 5. **模块和 CPAN**:Perl 拥有一个庞大的模块生态系统,称为 Comprehensive Perl Archive Network (CPAN)。读者将学习如何利用 CPAN 寻找、安装和使用第三方模块。 6. **测试和调试**:chromatic 是 Perl 测试领域的专家,书中有大量关于编写测试用例和使用 Perl 测试框架的内容,帮助读者确保代码的质量和稳定性。 7. **现代 Perl 工具和技术**:包括 Moose(一个面向对象的扩展)、Catalyst(一个 web 应用框架)和 Mojolicious(一个轻量级的 web 开发框架)等工具的介绍和应用。 8. **Perl 社区和最佳实践**:书中会介绍全球 Perl 社区的资源,以及如何遵循社区的最佳实践来编写可维护和可扩展的代码。 9. **版本管理和持续集成**:书中可能涵盖了使用 Git 进行版本控制,以及如何设置自动化测试和构建流程,以实现持续集成。 通过阅读《Modern Perl 4th Edition》,读者将能够全面了解 Perl 语言,掌握核心概念和最佳实践,从而成为一名高效的 Perl 开发者。此外,书中还包含了最新的语言特性,使得这本指南对新手和经验丰富的 Perl 程序员都极具价值。
2016-10-25 上传
A Perl expert can solve a problem in a few lines of well-tested code. Now you can unlock these powers for yourself. Modern Perl teaches you how Perl really works. It's the only book that explains Perl thoroughly, from its philosophical roots to the pragmatic decisions that help you solve real problems--and keep them solved. You'll understand how the language fits together and discover the secrets used by the global Perl community. This beloved guide is now completely updated for Perl 5.22. When you have to solve a problem now, reach for Perl. When you have to solve a problem right, reach for Modern Perl. Discover how to scale your skills from one-liners to asynchronous Unicode-aware web services and everything in between. Modern Perl will take you from novice to proficient Perl hacker. You'll see which features of modern Perl will make you more productive, and which features of this well-loved language are best left in the past. Along the way, you'll take advantage of Perl to write well-tested, clear, maintainable code that evolves with you. Learn how the language works, how to take advantage of the CPAN's immense trove of time-tested solutions, and how to write clear, concise, powerful code that runs everywhere. Specific coverage explains how to use Moose, how to write testable code, and how to deploy and maintain real-world Perl applications. This new edition covers the new features of Perl 5.20 and Perl 5.22, including all the new operators, standard library changes, bug and security fixes, and productivity enhancements. It gives you what you need to use the most up-to-date Perl most effectively, all day, every day. What You Need: Perl 5.16 or newer (Perl 5.20 or 5.22 preferred). Installation/upgrade instructions included. Table of Contents Chapter 1. The Perl Philosophy Chapter 2. Perl and Its Community Chapter 3. The Perl Language Chapter 4. Operators Chapter 5. Functions Chapter 6. Regular Expressions and Matching Chapter 7. Objects Chapter 8. Style and Efficacy Chapter 9. Managing Real Programs Chapter 10. Perl Beyond Syntax Chapter 11. What to Avoid Chapter 12. Next Steps with Perl