© SpringPeople Software Private Limited, All Rights Reserved.© SpringPeople Software Private Limited, All Rights Reserved.
Introduction to
© SpringPeople Software Private Limited, All Rights Reserved.
What is Perl?
Practical Extraction and Report Language
•A general purpose programming language originally developed
for text manipulation and now used for a wide range of tasks
including system administration, web development-CGI scripting,
network programming, GUI development, and more.
•The language is intended to be PRACTICAL (easy to use,
efficient, complete) rather than BEAUTIFUL (tiny, elegant,
minimal).
•Perl has many features that ease the programmer's task at the
expense of greater CPU and memory requirements. These
include automatic memory management, dynamic typing,
strings, lists, and hashes, regular expressions.
© SpringPeople Software Private Limited, All Rights Reserved.
Features Of Perl
• The overall structure of Perl derives broadly form C.
• Perl also takes features from shell programming.
• All variables are marked with leading sigils.
• It has many built in functions.
• Perl takes
– Lists from LISP
– Hashes (“associative arrays”) from awk.
– Regular expressions from sed.
© SpringPeople Software Private Limited, All Rights Reserved.
Perl Language Structure
• PERL encompasses both the syntactical rules of the
language and the general ways in which programs are
organized.
• It is dynamically typed language.
• Relatively easy to learn (and easier to make a mess too).
• Incredibly flexible coding style (some argues it is too
flexible).
• Perl is interpreted not complied hence its scripting
language.
• It follows OOPs concepts.
© SpringPeople Software Private Limited, All Rights Reserved.
Typical Uses Of Perl
• Text processing
• System administration tasks
• CGI and web programming
• Database interaction
• Other Internet programming
© SpringPeople Software Private Limited, All Rights Reserved.
• Perl is loosely typed language and there is no need to specify
a type for your data while using in your program. The Perl
interpreter will choose the type based on the context of the
data itself.
• Perl has three basic data types:
– Scalars
– Arrays of scalars
– Hashes of scalars, also known as associative arrays.
Perl Data Types
© SpringPeople Software Private Limited, All Rights Reserved.
Loops In Perl
Loop Type Description
while loop Repeats a statement or group of statements while a given condition is
true. It tests the condition before executing the loop body.
until loop Repeats a statement or group of statements until a given condition
becomes true. It tests the condition before executing the loop body.
for loop Executes a sequence of statements multiple times and abbreviates the
code that manages the loop variable.
foreach loop The foreach loop iterates over a normal list value and sets the variable
VAR to be each element of the list in turn.
do...while loop Like a while statement, except that it tests the condition at the end of
the loop body
nested loops You can use one or more loop inside any another while, for or do..while
loop.
© SpringPeople Software Private Limited, All Rights Reserved.
Perl POD
• Pod is a simple-to-use mark-up language used for writing
documentation for Perl, Perl programs, and Perl modules.
• Translators are available for converting Pod to various formats
like plain text, HTML, man pages, and more.
• Pod mark-up consists of three basic kinds of paragraphs
– Ordinary
– Verbatim
– Command.
© SpringPeople Software Private Limited, All Rights Reserved.
How you can master Perl?
Become an expert in 3 days.
World class Perl training by the industry experts.
More Details
© SpringPeople Software Private Limited, All Rights Reserved.
Suggested Audience & Other Details
• Suggested Audience - The audience for this course includes
application developers, software engineers, and other
network designers.
• Duration – 3 Days
• Prerequisites
– Prior programming experience.
Syllabus
© SpringPeople Software Private Limited, All Rights Reserved.
For further info/assistance contact
training@springpeople.com
+91 80 656 79700
www.springpeople.com
Our Partners

Introduction To Perl - SpringPeople

  • 1.
    © SpringPeople SoftwarePrivate Limited, All Rights Reserved.© SpringPeople Software Private Limited, All Rights Reserved. Introduction to
  • 2.
    © SpringPeople SoftwarePrivate Limited, All Rights Reserved. What is Perl? Practical Extraction and Report Language •A general purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development-CGI scripting, network programming, GUI development, and more. •The language is intended to be PRACTICAL (easy to use, efficient, complete) rather than BEAUTIFUL (tiny, elegant, minimal). •Perl has many features that ease the programmer's task at the expense of greater CPU and memory requirements. These include automatic memory management, dynamic typing, strings, lists, and hashes, regular expressions.
  • 3.
    © SpringPeople SoftwarePrivate Limited, All Rights Reserved. Features Of Perl • The overall structure of Perl derives broadly form C. • Perl also takes features from shell programming. • All variables are marked with leading sigils. • It has many built in functions. • Perl takes – Lists from LISP – Hashes (“associative arrays”) from awk. – Regular expressions from sed.
  • 4.
    © SpringPeople SoftwarePrivate Limited, All Rights Reserved. Perl Language Structure • PERL encompasses both the syntactical rules of the language and the general ways in which programs are organized. • It is dynamically typed language. • Relatively easy to learn (and easier to make a mess too). • Incredibly flexible coding style (some argues it is too flexible). • Perl is interpreted not complied hence its scripting language. • It follows OOPs concepts.
  • 5.
    © SpringPeople SoftwarePrivate Limited, All Rights Reserved. Typical Uses Of Perl • Text processing • System administration tasks • CGI and web programming • Database interaction • Other Internet programming
  • 6.
    © SpringPeople SoftwarePrivate Limited, All Rights Reserved. • Perl is loosely typed language and there is no need to specify a type for your data while using in your program. The Perl interpreter will choose the type based on the context of the data itself. • Perl has three basic data types: – Scalars – Arrays of scalars – Hashes of scalars, also known as associative arrays. Perl Data Types
  • 7.
    © SpringPeople SoftwarePrivate Limited, All Rights Reserved. Loops In Perl Loop Type Description while loop Repeats a statement or group of statements while a given condition is true. It tests the condition before executing the loop body. until loop Repeats a statement or group of statements until a given condition becomes true. It tests the condition before executing the loop body. for loop Executes a sequence of statements multiple times and abbreviates the code that manages the loop variable. foreach loop The foreach loop iterates over a normal list value and sets the variable VAR to be each element of the list in turn. do...while loop Like a while statement, except that it tests the condition at the end of the loop body nested loops You can use one or more loop inside any another while, for or do..while loop.
  • 8.
    © SpringPeople SoftwarePrivate Limited, All Rights Reserved. Perl POD • Pod is a simple-to-use mark-up language used for writing documentation for Perl, Perl programs, and Perl modules. • Translators are available for converting Pod to various formats like plain text, HTML, man pages, and more. • Pod mark-up consists of three basic kinds of paragraphs – Ordinary – Verbatim – Command.
  • 9.
    © SpringPeople SoftwarePrivate Limited, All Rights Reserved. How you can master Perl? Become an expert in 3 days. World class Perl training by the industry experts. More Details
  • 10.
    © SpringPeople SoftwarePrivate Limited, All Rights Reserved. Suggested Audience & Other Details • Suggested Audience - The audience for this course includes application developers, software engineers, and other network designers. • Duration – 3 Days • Prerequisites – Prior programming experience. Syllabus
  • 11.
    © SpringPeople SoftwarePrivate Limited, All Rights Reserved. For further info/assistance contact training@springpeople.com +91 80 656 79700 www.springpeople.com Our Partners