PERL Scripting

Reading Time: 2 minutes

PERL

    Module 1 : Overview of Perl

    • What is Perl?
    • The Input Operator
    • Print / Printf Statements
    • Running Perl Programs
    • Sample Program
    • Another Sample Program
    • Yet Another Example

    Module 2 : Perl Variables

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

    Module 3 : Arrays and Hashes

    • Arrays
    • Array Functions
    • The foreach Loop
    • The @ARGV Array
    • The grep Function
    • Array Slices
    • Hashes
    • Hash Functions
    • Scalar and List Contexts Revisited

    Module 4 : Quoting and Interpolation

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

    Module 5 : Conditional Statements

    • If Statements
    • If Else Statements
    • If Else if Statements
    • Nested If Statements
    • Switch Statements

    Module 6 : Looping Statements

    • While Statements
    • Until Statements
    • For Statements
    • For Each Statements

    Module 7 : Regular Expressions

    • Pattern Matching Overview
    • The Substitution Operator
    • Regular Expressions
    • Special Characters
    • Quantifiers (*, +, ?, {})
    • Assertions (^, $, \b, \B)
    • Translate
    • Split
    • Join

    Module 8 : Subroutines

    • Overview of Subroutines
    • Passing Arguments
    • Private Variables
    • Returning Values

    Module 9 : Files Handling

    • Overview of File I/
    • The open Function
    • The Input Operator
    • Default Input Operator
    • The print Function
    • Reading Directories

    Module 10 : Packages and Modules

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

    Module 11 : Database Connectivity

    • Using DBI
    • Fetching output of the Query through Perl
    • Running other DB queries.