perl

9
Learn About PERL with WebGuru99 Get Started!

Upload: guru99

Post on 11-May-2015

404 views

Category:

Education


2 download

DESCRIPTION

Perl is very easy to learn, especially if you have a background in computer programming. Perl was designed to be easy for humans to write and understand rather than making it easy for processing by computers. It uses regular expressions. Its natural style of language is different from other programming languages that use specific grammar and syntaxes; therefore, Perl is very flexible and doesn’t impose on you any particular way of thinking out a solution or a problem.

TRANSCRIPT

Page 1: Perl

Learn About PERL with WebGuru99

Get Started!

Page 2: Perl

What is a PERL?

Introduction to PERL

Where is Perl Used?

Why use Perl?

Arrays in PERL

What about dynamic arrays?

Introduction to Variables in PERL

Push, pop, shift, unshift for arrays:

Summary

What is PERL?

Perl stands in for “Practical Extraction and Reporting Language” even though there is no official acronym for Perl. You may create your own acronym and no one will mind. Perl was created by Larry Wall in 1987 when he was working on a bug reporting system and “AWK”- a programming language he was using for the purpose was not helping him much. He is still the chief architect and developer of Perl.

.

Page 3: Perl

Where is Perl used?

Introduction to PERL

Where is Perl Used?

Why use Perl?

Arrays in PERL

What about dynamic arrays?

Introduction to Variables in PERL

Push, pop, shift, unshift for arrays:

Summary

Page 4: Perl

Why use Perl?

Introduction to PERL

Where is Perl Used?

Why use Perl?

Arrays in PERL

What about dynamic arrays?

Introduction to Variables in PERL

Push, pop, shift, unshift for arrays:

Summary

Perl is very easy to learn, especially if you have a background in computer programming. Perl was designed to be easy for humans to write and understand rather than making it easy for processing by computers. It uses regular expressions. Its natural style of language is different from other programming languages that use specific grammar and syntaxes; therefore, Perl is very flexible and doesn’t impose on you any particular way of thinking out a solution or a problem.

Page 5: Perl

Introduction to Variables in PERL

Introduction to PERL

Where is Perl Used?

Why use Perl?

Arrays in PERL

What about dynamic arrays?

Introduction to Variables in PERL

Push, pop, shift, unshift for arrays:

Summary

There are 3 types of variables:.

Page 6: Perl

Arrays in PERL

Introduction to PERL

Where is Perl Used?

Why use Perl?

Arrays in PERL

What about dynamic arrays?

Introduction to Variables in PERL

Push, pop, shift, unshift for arrays:

Summary

An Array is a special type of variable which stores data in the form of a list; each element can be accessed using the index number which will be unique for each and every element. You can store numbers, strings, floating values etc. in your array. This looks great, So how do we create an array in Perl? In Perl, you can define an array using ‘@’ character followed by the name that you want to give. Let’s consider defining an array in Perl.

Page 7: Perl

Dynamic Arrays

Introduction to PERL

Where is Perl Used?

Why use Perl?

Arrays in PERL

What about dynamic arrays?

Introduction to Variables in PERL

Push, pop, shift, unshift for arrays:

Summary

Dynamic arrays are those that you declare without specifying any value on them. So when exactly do we store values in that array? Simple, we store them during run time. Here is a simple program for that.

Page 8: Perl

Push, pop, shift, unshift for arrays:

Introduction to PERL

Where is Perl Used?

Why use Perl?

Arrays in PERL

What about dynamic arrays?

Introduction to Variables in PERL

Push, pop, shift, unshift for arrays:

Summary

Push : Adds array element at the end of an existing array.Pop : Removes the last element from an array.Shift: Removes the first element from an array.Unshift : Adds an element at the beginning of an array.

Page 9: Perl

Learn More About PERL visit http://web.guru99.com/perl-tutorials/

Get Started!