Perl Training
Live Online & Classroom Enterprise Training Course
Become an expert on Perl Programming.This course provides in-depth coverage of all the significant aspects of Perl programming, equipping you with the knowledge and skills needed to excel in web application development
Mastering Perl Programming: Unlock the Full Potential of Perl Language
Course Overview
Perl Deep Dive training teaches Perl developers the skills they need to fully utilize Perl’s object-oriented features interact with databases use Perl/Tk extend Perl with C/C++ and write their own Perl modules.
Comprehensive Perl Training for Beginners and Experienced Developers
At the End of the Course, Participants will be able to :
- Debug Perl applications using a variety of tools
- Manipulate lists
- Create packages
- Utilize Perl’s object-oriented features and write their own classes
- Install and use Perl modules
- Integrate Perl scripts with databases using the DBI module
- Explore the fundamentals of Perl/Tk programming
- Extend Perl with C/C++
- Develop their own Perl modules
Pre-requisite
Participants must have prior Perl programming experience.
Duration
3 days
Course Outline
Warnings
Diagnostic Messages
Carping, Confessing, and Croaking
Strict Checks
Compiler Pragmas
Debugging Flags
Your Perl Configuration
The Devel::Peek Module
The Data::Dumper Module
The grep Operator
Lists, Arrays, and List Operators
Context
Context and Subroutines
Initializing Arrays and Hashes
Reference Syntax
Auto-vivification
Defined Values
Other List Operators
Usage of map, grep, and foreach
Blocks
Subroutines
Subroutine Prototypes
Code Refs and Anonymous Subroutines
Typeglobbing for the Non-Squeamish
Local (Dynamic) Variables
Lexical Variables
Persistent Private Subroutine Variables
Closures
The eval Operator
The Block Form of eval
The String Form of eval
Block Form of eval for Exception Handling
Review of Packages
BEGIN and END Blocks
Symbol Tables
Package Variables
Calling Package Subroutines
Importing Package Symbols
Exporting Package Symbols
Using the Exporter Package
The use Function
AUTOLOAD and @ISA
AutoLoader and SelfLoader
Object-Oriented Stuff
Making Perl Object-Oriented
References
The bless Function
So, What’s a Blessed Thing Good For?
Calling Class and Object Methods
Object Methods
Writing Classes
Constructors
Inheritance
What Perl Doesn’t Do
Why Use tie?
Tying a Scalar
Inside Tied Variables
untie
Tying an Array
Tying Hashes
Tie::Hash and Tie::Array
Tying Filehandles
What Are DBM, NDBM, GDBM, SDBM, etc?
Using the DBM Modules
Laziness, Impatience, and Hubris
CPAN
Using Modules
Installing a Perl Module
Unpacking the Module Source
The Configuration Step
The Build Step
The Test Step
The Install Step
Using CPAN.pm
Using Module Documentation
The Old Way – DBPerls
A Better Way – DBI/DBD
Database Programming
Handles
Connecting to the Database
Creating a SQL Query
Getting the Results
Updating Database Data
Transaction Management
Finishing Up
Error Checking in DBI
Getting Connected
Drivers
Using Parameterized Statements
Statement Handle Attributes
Other Handle Attributes
Column Binding
The do Method
BLOBs and LONGs and Such
Installing DBI Drivers
Tcl, Tk, Tcl/Tk, Tkperl, Perl/Tk, etc.
Perl/Tk
Creating a Perl/Tk Application
GUI Programming Overview
Adding Widgets
Scrolled Widgets
Configuring Widgets
Menus
More Fun with Menus
Using FileSelect
Tk::Error and Tk::ErrorDialog
Configuring Widgets
Geometry Management
Geometry Management with grid()
The Frame Widget
Defining Widget Callbacks
Bindings
Nonblocking I/O with fileevent()
Tags
Other Widgets
Other Tk Commands
Getting Tk
Extending the Perl Interpreter
Overview of Perl5 XSUBs
Get Started with h2xs
Set up the Perl Wrapper Class
Write the XS Code
The XS File
Write Some Test Code
What Do You Want?
Returning Values on the Stack
A Walk Through an XSUB
Arguments to XSUBs
Other h2xs Options
Why Embed Perl?
Embedding Perl in a C Program
Compiling the Program
perlmain.c
Perl Data Types
Macros and Functions
Manipulating Scalars
Memory Management
Script Space
Evaluating Perl Expressions
Dynamic Loading
Multiple Perl Interpreters
Distributing Modules
Get Started with h2xs
Files Created by h2xs
The Build Library (blib) ulectory
Unit Testing and test.pl
Versions
Using blib
POD
POD Translators
Cutting a Distribution
Other Niceties
Makefile.PL
Think First
Object-Oriented Design
Object-Oriented Development
Library Modules
Utility Programs
Filters
Performance
Timing with Benchmark