About Perl Pragmas, Modules, and CPAN – the Comprehensive Perl Archive Network.
Basics on Perl control structures
Basic Regular Expressions for Perl
Introduction
Subroutines are user-created functions that execute a block of code at any given place in your program. It is a best practice, however, to aggregate them all either at the beginning or the end the main program.
Subroutine declarations initiate with the key word “sub” . Conventionally, subroutine names are all lowercase characters
sub NAME (PROTOTYPE) [...]
Built in Perl functions for Scalars, Arrays, and Hashes
References and Complex Data Structures (CDS)
Now that we have a pretty good understanding of the 3 types of data in Perl, it’s time we bump it up a notch and put them all together. Perl is most famous for its text manipulation using regular expressions, but it should also be noted by the ability to [...]
Hashes
The hash is, in my honest opinion, the most important data structure in Perl. It is nothing more than what other languages call an Associative Array, but it is very powerful and one of the key features of Object Oriented Perl.
Arrays and Lists
Sometimes working with one piece of data just isn’t enough. You might want to specify lists of data, and save those lists in a variable. For this purpose, Perl gives us the list and array constructs.
Scalars
Variable Names
Scalar is the type of variable used to hold one single piece of information. Examples of scalar information are one string, one character, one object, one reference… If you can say one something, then it’s scalar.
In this chapter, we will see the three types of variables available in Perl: Scalars, Arrays, and Hashes. We will also work with lists, slices, and Complex Data Structures. However, before we go on, you will need to know a few basic commands so you understand the examples.
Code comments: In Perl, you can add comments [...]