Perl Crash Course: Pragmas, Perl Modules, and CPAN

About Perl Pragmas, Modules, and CPAN – the Comprehensive Perl Archive Network.

Perl Crash Course: Control Structures

Basics on Perl control structures

Perl Crash Course: Basic Regular Expressions

Basic Regular Expressions for Perl

Perl Crash Course: Subroutines

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 [...]

Perl Crash Course: Gettin’ jiggy wit it

Built in Perl functions for Scalars, Arrays, and Hashes

Perl Crash Course: References and Complex Data Structures (CDS)

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 [...]

Perl Crash Course: Hashes

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.

Perl Crash Course: Arrays and Lists

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.

Perl Crash Course: Scalars

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.

Perl Crash Course: Variables and Data Structures

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 [...]