Module 6: Perl Scripting
- Perl – Introduction
- Perl – Syntax Overview and Data types
- Perl – Variables and Scalars
- Perl – Arrays and Hashes
- Perl – Functions
- Perl – Conditional Statements and Loops
- Perl – Operators and Date Time
- Perl – Subroutines and Formats
- Perl – File I/O and Directories
- Perl – Error Handling and Special Variables
- Perl – Coding Standard and Regular expression
- Perl – Special Variables
- Perl – Socket Programming
- Perl – Packages and Modules
- Perl – Database Access
- Perl – Object Oriented Programming
- Perl – CGI Programming
Perl – Introduction
Perl is a programming language which was originally developed for script manipulation. But now Perl is used for a variety of purpose including web development, GUI development, system administration and many more. It is a stable, cross platform programming language.
For web development, Perl CGI is used. CGI is the gateway which interacts with the web browser and Perl in a system.
Its typical use is extracting information from a text file and printing out report for converting a text file into another form. This is because it got its name after the expression, “Practical Extraction and Report Language”.
Programs written in Perl are called Perl scripts, whereas system programs to execute Perl scripts are called Perl program.
The first version of Perl was 1.0 which released on December 18, 1987. The latest version of Perl is 5.28. Perl 6 is different from Perl 5 because it is a fully object-oriented reimplementation of Perl 5.
Perl is a high-level, general-purpose programming language that was created by Larry Wall in 1987. It was originally designed for text processing, but has since evolved to become a full-featured programming language that is widely used in web development, system administration, network programming, and more.
One of Perl’s defining features is its “There’s more than one way to do it” philosophy, which encourages developers to solve problems using their own preferred methods rather than adhering to strict coding conventions. This can make Perl code more flexible and expressive, but it can also lead to code that is difficult to read and maintain.