LLC206: Perl Scripting on Linux

Overview
Linux has gained considerable momentum as the operating system of choice for writing Perl scripts for various purposes like System Administration & web designing. In the course LLC206, the participants gain a basic to mid level understanding of the techniques of writing a perl script. They learn to create scripts to automate administrative tasks by understanding the structure of standard examples in perl scripting.

Pre-Requisites
Knowledge of command line usage of Linux OS is essentials. Knowledge of essential user, system and file operation commands is helpful. Knowledge of shell scripting helps in better understanding of this training programme.

Target Audience
This course is intended for software developers, administrators, and other users who want to acquire basic perl programming skills.

Duration: 2 days (Full-time)

Training Fee: Rs.5,000/- (Plus GST)


Course Outline

Introduction
– What is Perl ?
– Why Perl ?
– Gettingl and Installing Perl
– Perl as an Interpreter
– Writing our first Perl program
– Executing a Perl Program

Perl Programming Options
– Scalar Variables, Print function, Number Strings and Assignments
– Working with Lists, Arrays and Hashes.
– Conditional Statements – if-elseif, else & unless
– Conditional Loops – foreach, while, until, do….while and do …until
– References and Typeglobs

Pattern Matching with Regular Expressions
– String Interpolation
– Where Regular Expressions Occur
– Elements of Regular Expressions
– More Advanced Pattern matching Expressions
– Extracting Matched Text
– Matching more than once

Subroutines
– Difference between Subroutines & Functions
– Declaring and Calling Subroutines
– Passing Parameters
– Prototypes
– Returning Values from Subroutines
– Reference to Subroutines

Working with Files and I/O
– Creating Filehandles
– Reading from Files
– Writing from Files
– Opening Pipes
– Manipulating files and Directories

Standard Perl Modules
– Modules and Packages
– Package and Lexical Variables
– Loading Module – Using do, require & use
– Special Hash %INC and Special Array @INC
– Installing Modules
– Finding out what Modules are Installed
– Exploring some of the Modules

Using Perl for Administration
– User Administration
– Implementing Disk Quotas
– Executing a Remote Command
– Remote Backup
– Automating FTP
– Getting DNS Address

Debugging Perl Scripts
– Syntax Error Checklist
– Diagnostic Modules
– Using Perl Debugger

Print Friendly, PDF & Email