
You can download all of the downloads for this course from the resources section of this video. Or, you can download the files from the resources sections of the lessons as you go through the course.
In this lecture, you will write and run your first Perl program -- the helloworld.pl program. We'll examine each statement in the program so that what it does is clearly understandable. You'll also see the helloworld program run on both a Unix and a Windows computer.
After completing this lecture, you will know what String Literals are, you'll know what String Scalars are, you will have gotten exposure to Perl's string operators, you'll understand the differences in how Perl interprets strings between single quotes versus those between double quotes, you'll have gotten a view of Perl's "backslash escape" sequences and you'll know how to make use of them. In addition, you'll do an exercise using strings.
You will go over a solution to the exercise presented in the last video. Also, to help lock in your new knowledge, you will get a quick review of what's been covered so far concerning strings in Perl.
After going through this lecture, you'll know how to get user input into your Perl programs by using the "line input operator". Also, you'll know what the "chomp" function is, what it's for, and how to use it. You will also begin to see how what you've learned so far can be used to create a program (the "calculator" program), and how pseudo code can be useful in creating your Perl programs.
You'll learn about Perl's "Binary Assignment Operators", how to assign values to variables, how to use Perl's operators on variables, and how to use Perl to solve a classic Computer Science problem -- the "Exchange the values in Two Variables" problem.
After completing this lecture, you'll know about "if" control structures and Perl's string and numerical comparison operators. You'll also know how Perl decides if a condition is "true" or "false". You will use this knowledge as you continue to build the "calculator" program.
You'll learn to create and use while loops in Perl, you will learn about Perl operator precedence and associativity, you will see how to set your own operator precedence and associativity by using parentheses, and you will see how to complete the "calculator" program.
These are additional array related exercises. They are optional and for those that want more opportunities to exercise newly acquired knowledge.
Additional exercises to help lock in input and output knowledge.
Additional 'hash' related activities to exercise your new hash knowledge.
These are additional exercises that will help sharpen skills using regular expressions. Two of the exercises use real client data so the student gets experience dealing with an actual real-world data set.
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