Homepage | Courses | Autoamtion | PERL Scripting  
Who we are…what do we do…how we do it  
and more...  
 
 



 
 

Courses

 
AUTOMATION

PERL Scripting
 

Course Description
Perl is a more powerful and popular scripting language. Now a day it is becomes a more essential in large scale environment. System Administrator, Data Base Administrator, Web Administrator and Application Developer and also Programmer will get more benefit from this training. You will get hands-on experience. Learning Perl scripting is an added advantage. Trainee will introduced to object-oriented programming in Perl as well as how to use pattern matching with Regular Expressions and string handling functions to manipulate files and data. Students will get knowledge of command line processing, file and directory I/O to create flexible and user friendly programs and also create reusable code using subroutines, modules, and Perl's object-oriented architecture to deploy business logic across many programs and scripts to enhance maintainability and scalability.

Goals
Our goal is to give you exposure, hands-on experience and a general overview to developing code for modern computer systems. You will become a more efficient to automate the day to day jobs and providing reliable and fast analysis in a large scale environment.

Prerequisites

  • Strong Linux Commands Knowledge
  • Operating System Functions -  Linux machine
  • Knowledge of any programming language - C, C++, Java

Duration:  5 Days Course

Contents

Module1: The Perl Programming Language Overview

  • Version of Perl
  • Identify the default directories
  • Create a command-line script
  • Overview of Perl Features
  • Perl Installation
  • Accessing Documentation via perldoc
  • Perl Strengths and Limitations

Module 2: Scalars

  • Define and describe numeric and string scalar data
  • Create string and numeric scalar variables
  • Modify scalar variables using operators
  • Print scalar values using single and double quotes
  • Remove \n from user input using the chomp command
  • Calculate a value using scalar operators based on user input

Module 3: Operators

  • Perl Operators
  • Functions and Precedence
  • File Test Operators
  • Assignment Operator Notations
  • The Range Operator

Module 4: Basic I/O and Regular Expressions

  • Use of the operator on the command line, line-by-line
  • Use ofprintf command
  • Test for a word or phrase in a file using regular expressions
  • Use anchors and character classes in regular expressions
  • Use alternation in regular expressions
  • Use variable interpolation
  • Substitute one text string for another using regular expressions
  • Extract parts of strings using regular expressions

Module 5: Advanced Regular Expressions

  • Substrings
  • Substrings in List Context
  • RE Special Variables
  • RE Options
  • Multi-line REs
  • Substituting with an Expression

Module 6: Control Structures

  • an if statement
  • a compound if/elsif/else statement
  • Use a for loop to display a list numbers
  • Use offoreach loop
  • Use of while loops
  • Exit from a loop using loop controls and statement modifiers
  •  switch construct

Module 7: Perl Variables

  • Three Data Types
  • Variable Names and Syntax
  • Variable Naming
  • Lists
  • Scalar and List Contexts
  • The Repetition Operator

Module 8: Arrays

  • Create an array variable
  • assign scalar values to the array
  • Determine the length of an array using an array operator
  • Use of array slices
  • Determine the length of an array using a scalar variable
  • Use pop to modify the contents of an array
  • Sort an array
  • Process the values passed in a command-line array

Module 9: Hashes

  • Print a hash using a foreach statement
  • Access, add, and delete keys and values from a hash
  • Print a hash using a while loop and the each function
  • Determine the number of occurrences of a string in an array using a hash
  • Determine if a key and value exist in a hash

Module10: Complex Data Structures

  • Two-dimensional Arrays in Perl
  • Anonymous Arrays and Hashes
  • Arrays of Arrays
  • Arrays of References
  • A Hash of Arrays
  • A Hash of Hashes

Module11: Filehandles and Files

  • Use filehandles to open a file
  • Use die to display an error message if there is an error accessing a file
  • Append data to the end of a file
  • Use a filehandle to read the output of a program

Module12: File and Directory Operations

  • Use file operators to determine the characteristics of a file
  • Display the contents of a directory using chdir and globbing
  • Display the contents of a directory using directory handles and readdir
  • Rename files
  • Create symbolic links to files
  • Display all symbolic links in a directory
  • Set file permissions for files based on their extensions

Module13: Packages

  • Packages
  • BEGIN and END Routines
  • require vs. use
  • Modules
  • The bless Function

Module14: Subroutines and Modules

  • Create script that uses the strict pragma
  • Create subroutines that accept passed parameters
  • Return desired results based on the values passed
  • Include a subroutine that uses the my operator to create private variables
  • Perl library file in  a script
  • Perl package in a script
  • Create a Perl module and call it from a script

Module15: References

  • References
  • Creating References
  • Using References
  • Passing References as Arguments to Subroutines
  • Anonymous Composers
  • The Symbol Table

Module16: Quoting and Interpolation

  • String Literals
  • Interpolation
  • Array Substitution and Join
  • Backslashes and Single Quotes
  • Quotation Operators
  • Command Substitution

Module17: Introduction to Object-Oriented Programming in Perl

  • Object-Oriented Programming Overview
  • Use of Object-Oriented Programming
  • Classes, Objects, and Methods in Perl
  • Inheritance
  • Containment
  • Overloaded Operators
  • Destructors

Module18: Binary Data Structures

  • Variable-Length (Delimited) Fields
  • Variable  and  Fixed
  • Handling Binary Data
  • The pack Function
  • The unpack Function
  • The read Function
  • C Data Structures

Module19: Multitasking with Perl

  • What are single and multitasking?
  • UNIX Multitasking Concepts
  • Process Creation with fork
  • Program Loading with exec
  • File Descriptor Inheritance
  • How UNIX Opens Files works?
  • One-Way Data Flow - Pipes
  • Final Result - Page Viewing

Module 20: Sockets Programming in Perl

  • Clients and Servers
  • Ports and Services
  • Berkeley Sockets
  • Data Structures of the Sockets API
  • Socket System Calls
  • Generic Client/Server Models

Module 21: Introduction to DBI/DBD

  • The Old Way - DBPerls
  • A Better Way - DBI/DBD
  • Database Programming
  • Handles
  • Connecting to the Database
  • Creating a SQL Query
  • Updating Database Data
  • Transaction Management
  • Finishing Up

Module 22: DBI/DBD SQL Programming

  • Error Checking in DBI
  • Getting Connected
  • Drivers
  • Parameterized Statements
  • Statement Handle Attributes
  • Other Handle Attributes
  • Column Binding
  • The do Method
  • BLOBs and LONGs and Such
  • Installing DBI Drivers

Module 23: Overview of CGI Programming

  • Send a HTMLpage to a browser using a CGI script
  • Use a Here document in a CGI script to send an HTML page to a browser
  • Read an HTML form using the GET or POST method

Module 24: Debugging In Perl

  • Using the Built-in Perl Debugger
  • Starting the Debugger
  • Debugger Command Syntax
  • Checking for Script Syntax Errors
  • Solving Compile-Time Errors
  • Single-Stepping through a Script
  • Executing to Breakpoints
  • Setting Global Watches
  • Printing Values of Variables
  • Listing All Variables Used in the Script
  • Using Strict Error Checking
  • Quitting the Debugger
 

 
 
HOME    COMPANY    SERVICES    CAREERS     CONTACT US
Copyright © 2006-2012 Transform IT. All Rights Reserved.
Terms of Use | Designed by Transform IT User Experience Practice
Connect With Us