PERL (Shell Scripting)


About PERL

Linux has gained considerable momentum as the operating system of choice for writing Perl scripts for various purposes like System Administration & web designing .This course offers sufficient knowledge to write Perl scripts to automate Administrative tasks. A brief explanation of Perl language and modules will be given with suitable examples. This course is offered on compatible version of Red Hat Linux

Target Audience

The Audience for this course includes System Administrators & Programmers.


  • What is Perl?
  • Why Perl?
  • Getting 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- else if, else & unless
  • Conditional Loops- for each, while, until, do....while and do ...until
  • References and Type globs 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


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