Beginning Perl (Wrox)
Abstract
Perl is the ever-popular, flexible, open source programming language that has been called the programmers’ Swiss army knife. This book introduces Perl to both new programmers and experienced ones who are looking to learn a new language. In the tradition of the popular Wrox Beginning guides, it presents step-by-step guidance in getting started, a host of try-it-out exercises, real-world examples, and everything necessary for a Perl novice to start programming with confidence.
Beginning Perl provides the information and instruction you need to confidently get started with Perl.
This book is available for pre-order now at the Wrox website.
- 1. What’s Perl?
- 2. Understanding the CPAN
- 3. Variables
- 4. Working With data
- 5. Control flow
- 6. References
- 7. Subroutines
- 8. Regular Expressions
- 9. Files and Directories
- 10. Sort, map and grep
- 11. Packages and Modules
- 12. Object Oriented Perl
- 13. Moose
- What is Moose?
- Advanced Syntax
- Moose Best Practices
- Use namespace::autoclean and make your class immutable
- Never override new
- Always call your parent BUILDARGS method.
- Provide defaults if an attribute is not required.
- Default to read-only.
- Put your custom types in one module and give them a namespace.
- Don’t use multiple inheritance
- Always consume all of your roles at once.
- Summary
- Exercises
- WHAT YOU LEARNED IN THIS CHAPTER
- Answers to exercises
- 14. Testing
- 15. The Interwebs
- 16. Databases
- 17. Plays well with others
- 18. Common tasks




Add a comment



Add a comment