Enhance Your Skill Set with Perl

Enhance Your Skill Set with Perl

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 11.5 Hours | 1.52 GB

See Perl work, Hear Perl explained, Practice Perl to be an even more Skilled, Versatile, and Valuable I.T. Professional

This course will teach you Perl through a multi-sensory approach.

  • You will hear about Perl in lectures.
  • You will see Perl work through live examples.
  • You will touch Perl physically by working with the dozens of downloadable working Perl programs you will have access to and that are used in the live examples. You can use these programs to experiment with and as templates for your own Perl programming.
  • You will touch Perl mentally by working on the exercises and writing your own Perl programs.

Some of the basic and intermediate level Perl skills you will learn in this course include:

  • Downloading and installing Perl on your computer
  • Using Perl to work with numbers and strings. This could be used to do mathematical calculations and to manipulate strings.
  • Read data into your programs (for example, .csv files, data from the keyboard, regular files, etc.), detect data patterns, and alter that data with regular expressions and various Perl functions
  • Store lists of data in arrays and hashes
  • Use subroutines to create larger programs and to break your programs up into manageable pieces
  • Access and use ready-made code (modules)
  • Create, modify, read, write, and append files. Combine files, concatenate files.
  • Use File Tests to get information that you can use to make decisions about files, much like you’d do as a systems administrator.
  • Use References to Create complex data structures (e.g. arrays of arrays, hashes of hashes, hashes of arrays, and arrays of hashes).
  • See all of the above in action and practice what you learn by writing your own programs
Table of Contents

Introduction
1 Introduction
2 Course pre-requisites.

Getting Started Finding or Installing Perl on Your Computer
3 Finding Perl on a Unix or Linux computer.
4 Downloading Perl onto a Unix or Linux computer.
5 Finding Perl on a Windows Computer

Creating Your First Perl Program
6 Hello world Broken Down
7 Running Hello world.

Introduction to Storing Data in Your Perl Programs
8 Typing Data into your Perl program — Literals
9 A Literal program for You
10 A Single Value in Perl is a…Scalar
11 Doing Simple Math in Your Perl Program with the Calorie Calculation Exercise
12 Calorie Calculation Exercise key
13 A look at Scalar Strings
14 Scalar String Exercise and Solution

Arithmetic and Alphabetic String Operators
15 Binary Assignment Operators
16 Binary Assignment Exercise
17 Printing Data to Your Computer Screen

A Little more Math and making Comparisons
18 Making Sense of Mathematical Statements in Perl — Precedence and Associativity
19 Comparing Numbers and Making Decisions based on the Comparison
20 Getting User Input
21 Exercising Your New Knowledge
22 Exercise Key

Introducing the While loop
23 While and Undef
24 A while loop exercise and solution.

Working with Arrays in Perl
25 Lists Arrays and Array Operators
26 Getting to Array Values More Array Operators
27 Looping through Arrays with foreach and each
28 How Perl views the Context of Arrays
29 Exercises Using Arrays
30 Array Exercise Solutions

Perl Subroutines
31 Subroutines – What they are and how to create them
32 Subroutine Example
33 Subroutine Variables Return Values and Odds Ends
34 Subroutine Exercise
35 Subroutine Exercise Key

Perl Input and Output
36 The Line Input Operator method of data input
37 The Diamond Operator method of data input
38 Output using the print operator
39 Output using the printf operator
40 Input and Output using File Handles
41 Ensuring File Handles open successfully the say operator
42 Input Output Exercise
43 Input Output Exercise key

The Hash
44 Intro to Hashes in Perl
45 Getting Values into and out of Hashes
46 Hash Interpolation
47 Hash Examples
48 Exercise using Hashes
49 Hash Exercise Key

Regular Expressions
50 Introduction to Regular Expressions
51 Regular Expression Example 1
52 Regular Expression Back References and Character Classes
53 Regular Expression Example 2
54 Regular Expression Exercises 1
55 Regular Expressions Exercise 1 Key
56 The Pattern Match Operator and Match Modifiers
57 Modifiers Continued along with Anchors
58 Regular Expression Exercises 2
59 Regular Expression Exercises 2 Key
60 The Binding Operator and Match Variables
61 Regular Expression Exercises 3
62 Regular Expression Exercises 3 Key
63 More on Match Variables
64 General Quantifiers and Regular Expression Precedence
65 The Perl Substitution Split and Join operators
66 Perl Greediness Substitution Split and Join Examples
67 Regular Expression Exercises 4 and 5
68 Regular Expression Exercises 4 and 5 Solutions

More Control Structures
69 Unless and Until
70 Naked Control Blocks Auto-Increment and Auto-Decrement
71 For and the Ternary Operator
72 Logical Operators

Ready-made Perl code for YOU — i.e. Modules
73 Introduction to Perl Modules — What they are
74 Using Perl Modules
75 Working with Module Subroutines
76 Installing Modules
77 Module Exercise
78 Module Exercise Solution

A Most Powerful Perl Capability — References
79 What is a Reference
80 Nested References
81 Dereferencing and Dereferencing Exercise
82 Dereferencing Exercise Solution
83 The Simplest Dereferencing Form
84 Anonymous References and Exercise
85 Anonymous Reference Exercise Solution and More Exercises
86 More Anonymous Reference Exercises
87 More Anonymous Reference Exercise Solutions
88 Hash References and a Hash Reference Exercise

File Tests — Getting Information About Files
89 What are File Tests how do You run them which ones are Available for your use
90 File Test Exercise solution and Getting File Age and Size Info using File Tests
91 File Test Exercise and Solution where File Tests are Used to Discover File Type
92 Accessing the Power behind File Tests — The stat function
93 Programmatically determining file Size and Timestamps and a Timestamp Exercise
94 Stat and Localtime function exercise solution

Conclusion
95 Conclusion