Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

Perl

The Perl - Essentials training course is designed to introduce programmers to learning concepts of Perl language and developing the Perl Scripts.

In Advanced Perl training course, you will learn to write Perl code that makes use of best practices in Perl, and can therefore more easily be used by others. This includes using the built-in features of the language as well as learning and applying common approaches that make code more debuggable. Along with learning the best practices, you will also learn to write object-oriented Perl programs, proper packing techniques in support of deployable products, and to integrate Perl with C/C++ code.

By attending Perl - Essentials workshop, delegates will:

  • Learn basic fundamentals of Perl scripting language
  • Understand to write, analyze and modify Perl scripts
  • Learn to write Perl scripts using Scalar, Array , Hash Data
  • Understand to use subroutines, references, packages, modules in a Perl script
  • Learn to write pattern match regular expressions, write file handling programs
  • Learn to debug Perl script

By attending Advanced Perl workshop, delegates will learn to:

  • Understand the importance of Perl best practices
  • Create modular and reusable code by writing OO Perl
  • Work with elements of the CPAN library

  • Knowledge of basic Programming language fundamentals
  • Working knowledge of any Unix/Linux OS
  • Experience in any other programming language will be helpful though, it is not required.
  • Programmers, System Administrators, Webmasters who want to take their Perl skills to the next level

  • Programmers and system administrators

COURSE AGENDA

Perl - Essentials
(Duration : 3 Days)

1

Overview of Perl

  • What is Perl?
  • Perl Interpreter
  • Installing PERL
  • Running Perl Programs
2

Perl Variables

  • Three Types of Variables
  • Scalar, Array, Hash
  • Variable Names and Syntax
  • Scalar data functions -length, chomp, chop, index, rindex, sub-str, reverse, lc, lcfirst, uc, ucfirst, hex, ord, chr, abs, int, oct, sqrt
  • Variable Naming conventions
3

Operators

  • Perl operators
  • Operators Precedence and associativity
  • String Concatenation and Repetition Operators
  • Comparison Operators
  • Assignment Operator Notations
  • Shift Operators
  • The Range Operator
  • Quotation Operators
  • The Repetition Operator
4

Flow Control

  • Simple Statements
  • Compound Statements
  • The next, last Statements
  • if/if-else, if-elsif-else, while, unless, until loops
  • The for Loop
  • The foreach Loop
5

Arrays

  • Lists
  • Scalar and List Contexts
  • Arrays
  • Special variable – @ARGV
  • Array Functions – push, pop, shift, unshift, splice
  • Array Slices
  • List Functions – grep, map, reverse, sort, join
6

Hashes

  • Associative arrays
  • Hash functions
  • keys, values, each, exists, delete
  • special variable – %ENV
7

I/O: Input Operations and File I/O Filehandles

  • The open Function
  • The Input Operator <> , stdin, stdout
  • Default Input Operator
  • The print Function
  • File Operation Functions
  • Reading Directories
  • File Test Operators
  • Directory-Manipulation Functions
8

Subroutines

  • Overview of Subroutines
  • Passing Arguments
  • Local Variables
  • Passing Names
  • Returning Values
9

References

  • References
  • Creating References
  • Using References
  • Passing References as Arguments to Subroutines
  • Anonymous Data – Array, Hash
  • Two-dimensional Arrays in Perl
10

Packages

  • Define Packages, Modules
  • import package keywords-use, require
  • Package Variables , @INC
11

Regular Expressions

  • Pattern Matching Overview ,m// Operator
  • The Substitution Operator , s/// Operator
  • Regular Expressions
  • Special Characters
  • Quantifiers (*, +, ?, {})
  • Assertions (^, $, \b, \B)
  • RE Special Variables
  • Matching any character
  • Matching a Specified Number of Occurrences
  • Substituting with an Expression
  • Split and grep functions
12

Database connectivity using DBI

  • Overview of DBI programming
  • Using DBI module
  • Executing DDL, DML queries etc.
13

Testing/QA Automation

  • Use of Test::Simple
  • Use Test::More
  • Use Test::Harness
  • use of Test::Builder
14

Debugging

  • Overview of debugging
Perl - Advanced
(Duration : 5 Days)

1

Review of Perl Concepts

  • Environment requirements
  • Perl development process
  • Debugging
  • Warnings
  • Diagnostic Messages
  • Carping, Confessing, and Croaking
  • Strict Checks
  • Compiler Pragmas
  • Debugging Flags
  • Perl Configuration
  • The Devel::Peek Module
  • The Data::Dumper Module
2

List Manipulation

  • 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
3

Blocks and Code References

  • Blocks
  • Subroutines
  • Subroutine Prototypes
  • Code Refs and Anonymous Subroutines
  • Typeglobbing for the Non-Squeamish
  • Local (Dynamic) Variables
  • Lexical Variables
  • Persistent Private Subroutine Variables
  • Closures
  • ClosuresThe eval Operator
  • The Block Form of eval
  • The String Form of eval
  • Block Form of eval for Exception Handling
4

Packages

  • 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
5

Objects and Classes

  • Object-Oriented Stuff
  • Making Perl Object-Oriented
  • References
  • The bless Function
  • Calling Class and Object Methods
  • Object Methods
  • Writing Classes
  • Constructors
  • Inheritance
  • What Perl Doesn’t Do
6

Tied Variables

  • 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
7

Installing and Using Perl 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
8

Introduction to DBI/DBD

  • 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
9

DBI/DBD SQL Programming

  • 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
10

Module Development and Distribution

  • Distributing Modules
  • Get Started with h2xs
  • Files Created by h2xs
  • The Build Library (blib) Directory
  • Unit Testing and test.pl
  • Versions
  • Using blib
  • POD
  • POD Translators
  • Cutting a Distribution
  • Other Niceties
  • Makefile.PL
11

Design and Implementation

  • Think First
  • Object-Oriented Design
  • Object-Oriented Development
  • Library Modules
  • Utility Programs
  • Filters
  • Performance
  • Timing with Benchmark

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting https://www.encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top
Notice
X