Advanced Perl Programming

Rating:
1 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 5
Loading...
Please Log in or register to rate

Advanced Perl Programming

PRL-103

Advanced Perl course for anyone who has basic understanding in Perl and would like to be able to us more advanced features, create clean, easily reuse code.

Course format: Total length of the course is 40 academic hours (usually 5 days). About 50% of the time is hands on lab work.

Course Objectives
  • To be able capable to use advanced features of Perl
  • To be able to create Modules for better coder reuse
  • To be able to write Object Oriented Perl code, create classes
Audience

Target Audience:

  • People who use the Perl programming language on a regular base for advanced tasks
  • People who need to go beyond simple scripts and create reusable code

Prerequisites:

  • In order to take this course you must have working knowledge of Perl
  • An understanding of the 3 basic data types and subroutine definitions
  • Scalar and List context
  • Have attended the first part of this course or has at least one year practice using Perl
Course Topics

Using existing modules:
– Using standard modules
– Installing modules from CPAN
– Using CPAN modules

Perl references:
– Introduction to References
– Anonymous Arrays and Hashes
– Multi Dimensional Data Structures
– Manipulating Complex Data Structures
– References to functions
– Anonymous functions
– Static variables and Closures
– Memoization
– Data serialization
– Practical use of function references

Perl libraries and modules:
– Packages, Namespaces
– Libraries and Modules
– Creating libraries and modules
– Exporting selected functions
– Writing Unit Tests for Perl Modules
– Packaging modules for distribution

Error handling:
– Catching exceptions using block eval
– Exception handling with Try::Tiny
– Warnings and errors from the users POV with Carp
– Throwing exceptions with die and with Exception::Class

Object Oriented Perl (OOP) using Moose:
– Constructors and destructors
– Class methods and Instance methods
– Members
– Inheritance, Polymorhism, Encapsulation
– Singleton
– Operator overloading

Object Oriented Perl (OOP) using plain Perl:
– Constructors and blessing
– Accessors
– Base and parent class
– Method call
– Destructor (DESTROY)
– Automatic Class creation

Extra:
– Using the Perl debugger
– Using Dancer for writing Web applications
– Using LWP to write web scraping programs

Exercises:
– Set up local::lib
– Install module
– Read/Write Excel file
– Practice the use of reference in subroutines
– Use of multi-dimensional data structures
– Read and parse config file and CSV file
– Create a solution using callback
– Practice the use of dispatch tables
– Create a module exporting functions
– Create a class with inheritance

© Copyright - Skilit - Site by Dweb