This Advanced Perl training course will allow you to create modules, classes. To write Object Oriented code in the modern way, using Moose, and by using only core Perl, manually blessing references.

It is based on many years of experience teaching Perl, blended with the modern features of Perl and CPAN.

Taking this course will help you maintain existing code and it will teach you how to use modern Perl tools to write new, nice and maintainable Perl code.

Table of Content

Some of the episodes are already available, some are going to be published later on. Some require registrations to the Perl Maven Pro others can be freely accessed by anyone. Some include screencasts, others contain just text.

Libraries and Modules, Packages and Namespaces

  1. Introduction to the Advanced Perl Maven course
  2. Perl 4 libraries
  3. The problem with Perl 4-style libraries
  4. Namespaces or packages
  5. Modules
  6. How does require find the module to be loaded?
  7. What is the difference between require and use? What does import do?
  8. Exporting and importing functions easily
  9. Restrict the import by listing the functions to be imported
  10. Import on demand
  11. Behind the scenes
  12. Tools to package Perl scripts, modules, and application
  13. Distribution directory layout
  14. Makefile.PL of ExtUtils::MakeMaker
  15. Makefile.PL of Module::Install
  16. Build.PL of Module::Build
  17. Changes and README
  18. MANIFEST and MANIFEST.SKIP
  19. Packaging a script and a module
  20. Packaging with Makefile.PL
  21. Packaging with Build.PL
  22. test-file
  23. @INC and the namespace hierarchy
  24. How to create a Perl Module for code reuse?
  25. Exporting functions automatically
  26. Packaging modules for distribution
  27. Writing Unit Tests for Perl Modules
  28. Exception handling with eval block
  29. Exception handling with Try::Tiny
  30. Warnings and errors from the users POV with Carp
  31. Throwing exceptions with die and with Exception::Class

Using existing modules

  1. Using standard modules
  2. Installing modules from CPAN
  3. Using CPAN modules

References

  1. Introduction to References
  2. Passing two arrays to a function
  3. Array references
  4. Handling multi-dimensional, complex data structures
  5. Manipulating Complex Data Structures
  6. Reference counting
  7. Debugging data structures
  8. Anonymous arrays and hashes
  9. Subroutine references
  10. Dispatch tables
  11. Handling memory leak
  12. Deep copy of data structures
  13. Static and state variables
  14. Closures
  15. Creating a caching system
  16. Signal handling
  17. Handling warnings in the code
  18. Filtering with grep in Perl
  19. Transforming a perl array using the map function
  20. Array and hash slices
  21. Creating context sensitive functions using wantarray.
  22. Improving speed by using the Schwartzian transformation
  23. Anonymous functions
  24. Memoization
  25. Data serialization
  26. Practical use of function references

Packaging modules for distribution

  1. The directory hierarchy of a CPAN module
  2. Writing Unit Tests for Perl Modules
  3. ExtUtils::MakeMaker
  4. Module::Build
  5. Module::Install
  6. Dist::Zilla

Object Oriented Programming in Perl using raw classes

See the Classic Object Oriented Perl page.

Object Oriented using Moo

See the Moo page

Object Oriented using Moose

See the Moose page

Some other advanced topics

  1. Throwing exceptions in Perl
  2. Catching exceptions in Perl
  3. Always use strict and warnings
  4. How to handle warnings in an application?
  5. splain and use diagnostics
  6. Fatal warnings
  7. Array and hash slices
  8. splice
  9. AUTOLOAD
  10. BEGIN
  11. END
  12. How to sort faster in Perl - Schwartzian transformation
  13. use autodie
  14. Perl::Critic
  15. Avoid unwanted bitwise operators using Perl::Critic
  16. Perl::Tidy
  17. Saved variable: local
  18. Who is calling? caller
  19. Logging with Log::Dispatch
  20. Time and date with DateTime
  21. Signals and the kill function
  22. default scalar variable of Perl

What do people say?

Just watched the Advanced Perl Maven - Online video course by @szabgab.
Fantastic value, great course. ++.

Mark Smith

@szabgab oh cool thanks! im recommending it to my boss too so
he can better appreciate the work i do :)

@szabgab hah! im also getting it for myself too.. need to fill in the
blanks in my perl knowledge. thanks for making your tutorials available
@szabgab just got all 3 courses! btw i found you through youtube when
i was looking for help using perl Dancer and found your blog tutorial.

Captain Fwiffo