Perl is a scripting language created by Larry Wall in 1987. It is an interpreted language useful for tasks like system administration, web development, and text processing due to its powerful string and text manipulation capabilities. Perl code does not need to be compiled and can run on many platforms including Unix, Windows, and Linux. It has scalar, list, and hash variable types and supports both procedural and object-oriented programming. Perl is an open source language with over 20,000 third-party modules available to extend its functionality. The latest version is 5.26.0 released in 2017.
7. Practical Extraction and Report Language
A scripting language which is both relatively simple to
learn and yet remarkably powerful.
8. Perl is a high level programming language
It is suitable for a wide varity of applications
It is an open sourse technology
A widely using web scripting languge
9. Perl is a High-level scripting language
- no compiling is needed
- it runs on unix , windows ,linux
fast and easy test processing capability
fast and easy file handling capabilityvides
It can be used for large variety of tasks
Perl provides a large number of tools for quite in
complicated situstions
10. Perl implimented as in interpreted language
Perl satnds for practical extractions and reporting
language
Perl language is easily manipulating test , files and
preocess
It is faster than sh or csh .
And slower then c
It can compiles at run time
11. It is available for unix ,windows ,mac os
Perl has become a very large system of modules
12. It is a high level programming language
And interpreted language
It is also scripted language
Why is use
13. It is easy to gain a basic understanding of the language
and start writing useful programs quickly.
There are a number of shortcuts which make
programming ‘easier’.
Perl is popular and widely used, especially for system
administration and WWW programming.
14. Basic syntax :-
Statements end with “;”
Comments starts with “#”
- only single line comments
U don’t have to declare variable before u access it
15. Variables of perl
It has ‘3 ‘ variables mainly
Scaler variables , denoted by ‘$’ symbol
List variables , denoted by ‘@ ‘ symbol
Hash variables , denoted by ‘ %’ symbol
16. Scalar variables
They should always be preceded with the $ symbol
There are no datatypes such as character or numeric
The scalar variables means that it can store only
one value
If u treat the variables as character then it can
store a character . If u treat it as a number It can store
one number
Eg : $name = “chitty”;
17. List variables
They are like arrays . It can be considered as a group of
scalar variables
They always preceded by the @ symbol
Eg @names = “veronica”;
18. Hash variables
It has push , pop , shift , unshift operaters
Push and pop treat the list variables as a stack and
operate on it they act on the higher subscript .
Shift and unshift act on the lower subscript
19. Where using in real world
In test processing
for web programming
System administration
Web automation
21. Web site :-
http:safari.orially.com
contains both learning perl and programming perl
in ebook form
22. Perl and web :-
Perl used to be the most popular web programming
language due to its test manipulation capabilities and rapid
development cycle.
Perl can handle encrypted Web data, including e-
commerce transactions.
Perl can be embedded into web servers to speed up
processing by as much as 2000%.
Perl's mod_perl allows the Apache web server to embed a
Perl interpreter.
Perl's DBI package makes web-database integration easy.
23. Versions of perl :-
Perl 1. 0 version was introdused in 1987
(Larry wall introduced , while he was working as a
programmer at unisys).
The language expended over the next years.
Perl 2 (version) was introdused in 1988 ,this featured
better regular expresion.
Perl 3 was released in 1989.
24. Perl 4.036 was released in 1994.
Perl 5.000 relesed 1994 ,october 17, it was nearly
completely rewrite of the interpreter, and also added
many features to the language including objects ,
lexical variables ,and modules
25. Perl 5.003 was released june 25, 1996 as a security
release.
Finnally the latest version was released in may 30,
2017 (5.26.0)
26. Features of perl :-
the best features from other languages, such as C, awk, Perl takes
sed, sh, and BASIC, among others.
Perls database integration interface DBI supports third-party
databases including Oracle, Sybase, Postgres, MySQL and
others.
Perl works with HTML, XML, and other mark-up languages.
Perl supports Unicode.
Perl supports both procedural and object-oriented
programming.
Perl interfaces with external C/C++ libraries through XS or
SWIG.
Perl is extensible. There are over 20,000 third party modules
available from the Comprehensive Perl Archive Network (CPAN).
The Perl interpreter can be embedded into other systems.
27. Advanteges of perl :-
1) Perl runs on all platforms and is far more portable than C.
2) Perl is a huge collection of Perl Modules are free software (either
GNU General Public License or Artistic License).
3) Perl is very much efficient in TEXT and STRING manipulation i.e.
REG_EXP.
4) It is a language that combines the best features from many other
languages and is very easy to learn if you approach it properly.
5) Dynamic memory allocation is very easy in PERL, at any point of
time we can increase or decrease the size of the array.
28. Disadvantages of perl
1) You cannot easily create a binary image ("exe") from a
Perl file. It's not a serious problem on Unix, but it might be
a problem on Windows.
2) Moreover, if you write a script which uses modules from
CPAN, and want to run it on another computer, you need to
install all the modules on that other computer, which can
be a drag.
3) Perl is an interpretative language, so its comparatively
slower to other
compiling language like C. So, it s not feasible to use in
Real time environment like in flight simulation system.