In the previous tutorial we have learned how to work with Strings in Perl. In this guide, we will discuss the escape characters that will… [Read More]
Perl – Strings
String is a sequence of characters. As we have discussed in the Scalars guide that string is considered as scalar variable in Perl programming language…. [Read More]
Hashes in Perl
Hashes are group of key-value pairs. Hash variables are prefixed with “%” sign. Lets take a simple example first then we will discuss the hash… [Read More]
Perl – Lists and Arrays
In Perl, people use term list and array interchangeably, however there is a difference. The list is the data (ordered collection of scalar values) and… [Read More]
Use strict and use warnings in Perl
You may find the following lines in almost every perl script. use strict; use warnings; In this article, we will discuss about them one by… [Read More]
my keyword – Local and global variables in Perl
When we talk about local and global variables, we are in fact talking about scope of variable. Local variable Local variable scope is local, its… [Read More]
Scalars in Perl
Scalar data in Perl is considered as singular, it can either be number or string. We have covered a little bit about scalars in variables… [Read More]
Subroutines in Perl
Perl allows you to define your own functions, called subroutines. They are used for code reusability, so you don’t have to write the same code… [Read More]
Loops and loop control statements in Perl
Loops are used for executing a set of statements repeatedly until a particular condition is satisfied. In perl we have following loop constructs. Click on… [Read More]
Conditional Statements in Perl
In any programming language, conditional statements are considered as one of the most useful feature. Conditional statements are used, when we need to perform different… [Read More]
Until loop in Perl with example
Until loop behaves just opposite to the while loop in perl, while loop continues execution as long as the condition is true. In until loop,… [Read More]
Perl – foreach loop with example
The foreach loop is used for iterating arrays/lists. Syntax of foreach loop: foreach var (list) { statement(s); } Flow of Execution of the foreach Loop… [Read More]
Perl – do-while loop with example
In the last tutorial, we discussed while loop. In this tutorial we will discuss do-while loop in Perl. do-while loop is similar to while loop,… [Read More]
While loop in Perl with example
In the last tutorial, we discussed for loop in Perl. In this tutorial we will discuss while loop. As discussed in previous tutorial, loops are… [Read More]
For loop in Perl with example
In this tutorial we will learn how to use “for loop” in Perl. Loops are used to execute a set of statements repeatedly until a… [Read More]