This section provides a comprehensive Perl tutorial with clear explanation and practical programming examples.
Powerful, stable, portable and mature, Perl is one of the most feature-rich programming languages with over two decades of development. Perl is portable and cross-platform. Currently Perl can run on over 100 platforms. Perl is good for both mission critical large scale projects and rapid prototyping.
Getting Started with Perl
If you are new to Perl…
- First, you can get started quickly with Perl by following introduction to Perl programming language.
- Second, we provide you with step by step setting up Perl development environment for practicing Perl.
- Third, get your first program up and running by following developing the first program in Perl.
Basic Perl Tutorial
In this part, you are going to get familiar with Perl language. We will show you basic Perl syntax, data types and control flow statements.
Perl Regular Expression
Regular expressions allow you to look for patterns in your data. Regular expressions in Perl are powerful and very simple to use. In this part, you will learn the basic regular expression matching, substitutions, lookahead/lookbehind anchors and create useful regular expressions for your programs.
- Basic Matching Techniques
- Using Character Classes
- Alternation and Grouping
- Extracting Matches
- Substitution and Translation
Perl reference is simple but very powerful. In this part, you will have brief overview of Perl references. You will learn more about different types of Perl references and autovification concept. We will show you how to apply Perl references effectively in your program.
A large program is divided into reusable units of code which are known as functions or subroutines. In this part, we will show you how to define a simple subroutine, pass parameters to subroutine by reference or value and pass array’s reference to subroutines.
- Perl Subroutine
- Passing parameters to subroutines by reference and value
- Passing array’s reference to subroutines
Perl File I/O
In this part, we are going to show you how to deal with File I/O such as opening file, reading from file and writing to file using filehandles. We’ll show you other file handling techniques using a very useful diamond operator (<>).
Please help us out to build a good Perl tutorial for the developers community by giving us your suggestions and feedback on our tutorials via feedback form.