PERL

From Script | Spoken-Tutorial
Revision as of 00:42, 13 January 2013 by AmolBrahmankar (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction to Perl

Perl (Practical Extraction & Reporting Language) is widely used open-source language. It was originally developed by Larry Wall in 1987 as a general-purpose Unix scripting language to make report processing easier. Since then, it has undergone many changes and revisions and become widely popular amongst programmers. Larry Wall continues to work on development of the core language, and its upcoming version, Perl 6. Perl borrows features from other programming languages including C, shell scripting (sh), AWK, and sed. The language provides powerful text processing facilities, facilitating easy manipulation of text files. Perl gained widespread popularity in the late 1990s as a CGI scripting language, in part due to its parsing abilities.

Perl can be used as a very simple and easy to use programming language. This language helps programmer to write a simple piece of code against the heavy / complicated shell or C programming. This language is portable and reliable. Useful for applications requiring Pattern Matching extensively

Basic Level

  1. Installation of Perl
    • Installation of Perl 5.14.2 on Ubuntu Linux
    • Installation of Perl 5.14.2 on Windows
  2. Variables in Perl
  3. Comments in Perl
  4. Loops in Perl
    • for Loop
    • for-each Loop
    • while Loop
    • do-while Loop
  5. Conditional Statements
    • if Statement
    • if-else Statement
    • if-elsif-else Statement
    • switch Statement
  6. Data Structures in Perl
    • Scalar
    • Array
    • Associative Array or Hash
  7. More on Arrays
    • Getting length of an array
    • Accessing element of an array
    • Looping over an array
    • Basic array functions
      • push
      • pop
      • unshift
      • shift
      • split
      • qw
      • sort
  8. More on Hash
    • Accessing element of a hash
    • Basic hash functions
      • keys
      • values
      • each
    • Looping over a hash
  9. Functions in Perl
    • Simple function
    • Function with parameters
    • Function which return single value
    • Function which returns multiple values
  10. Blocks in Perl
    • Begin
    • End

Intermediate level

  1. Access Modifiers in PERL
    • my
    • local
    • our
  2. Referencing & Dereferencing in Perl
    • Referencing
    • De-referencing
  3. Special Variables in PERL
  4. Sample Perl Programs
  5. Exception and error handling in PERL
    • eval block in perl
  6. File Handling
    • open a file
    • open a file in read mode
    • open a file in read, write mode
    • open a file in append mode
    • write into a file
    • close the file handle
  7. Including files and/or modules in a PERL program
    • do
    • require
    • use
  8. Perl Modules
  9. PERL Module library
    • CPAN
  10. Adding path to a default list of paths for a module
    • @INC
  11. Downloading required module onto windows or linux
    • Downloading CPAN module
      • WindowsLinux
  12. PERL & HTML
    • CGI module

Advanced level

  1. Function Prototyping
  2. Date & Time
    • Current Time Stamp
    • Various Date formats
    • Various operations that can be performed on date
  3. Oops in Perl
    • Object creation
    • Constructor
    • Destructor
    • Accessing methods using an object
    • Inheritance in Per
  4. Exporting functions in Perl
    • EXPORT
    • EXPORT_OK
  5. Pattern Matching / Regular expression in Perl
    • Basics of pattern matching
    • Syntax
    • Modifiers
  6. Database handling
    • DBI module
  7. Multithreading
    • threads module
  8. Socket Programming
    • use IO::Socket::INET
  9. General information
    • Getting Perl version
    • Perl installation path
    • Information about the
      • module
      • it’s location
      • from where it is included in your perl script

Contributors and Content Editors

AmolBrahmankar, Nancyvarkey, Nirmala Venkat, PoojaMoolya