Perl 5 Essential Training
5h 27mBeginner2016-06-11
Authors

Bill Weinman
Tech Advocate, Entrepreneur, Programming Expert
Course details
Perl is a powerful and flexible scripting language that is uniquely suited to website development, system administration, and network programming. Perl 5 was originally released in 1994, and continues to evolve. The "Modern Perl" movement has embraced its mature syntax and reusable modules. Bill Weinman has designed this course to give the Perl student enough command of the language to write efficient and effective Perl scripts and maintain existing codebases.
Watch to learn the details of the Perl syntax, from variables, conditionals, loops, and data structures to regular expressions, functions, and references. A quick-start guide is included for experienced developers who want to get up and running with Perl 5 fast, and the entire course is recommended for both new and experienced programmers alike. Later chapters cover file handling and reusing code with Perl modules, plus Perl best coding practices.
Learning objectives
Understanding Perl's general syntax and the anatomy of a Perl script
Writing statements and expressions
Creating assignments
Working with variables and strings
Using data types effectively
Defining logical flow with conditionals and loops
Using special variables
Using Perl operators
Performing simple Perl programming tasks with expressions
Matching data
Defining and calling functions
Using references
Handling files in the file I/O
Using built-in functions
Reusing code with modules
Coding with Perl best practices
Watch to learn the details of the Perl syntax, from variables, conditionals, loops, and data structures to regular expressions, functions, and references. A quick-start guide is included for experienced developers who want to get up and running with Perl 5 fast, and the entire course is recommended for both new and experienced programmers alike. Later chapters cover file handling and reusing code with Perl modules, plus Perl best coding practices.
Learning objectives
Understanding Perl's general syntax and the anatomy of a Perl script
Writing statements and expressions
Creating assignments
Working with variables and strings
Using data types effectively
Defining logical flow with conditionals and loops
Using special variables
Using Perl operators
Performing simple Perl programming tasks with expressions
Matching data
Defining and calling functions
Using references
Handling files in the file I/O
Using built-in functions
Reusing code with modules
Coding with Perl best practices
Skills covered
PerlEssential TrainingProgramming LanguagesOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - Welcome
- 02 - Exercise files
1. Setting Up
- 03 - Installing Komodo for Mac OS X
- 04 - Installing Perl and Komodo for Windows
- 05 - About Perl
2. Quick Start
- 06 - About the quick start
- 07 - Hello World
- 08 - Counting lines in a file
- 09 - Loops and conditionals
- 10 - Functions
- 11 - Using perldoc
3. Basic Syntax
- 12 - Anatomy of a Perl script
- 13 - Statements and expressions
- 14 - Assignments
- 15 - Whitespace and comments
- 16 - Blocks and scope
4. Values and Variables
- 17 - Understanding values and variables
- 18 - Numeric variables
- 19 - Character strings
- 20 - Logical values
- 21 - Lists and arrays
- 22 - Slices of arrays
- 23 - Hashes or associative arrays
- 24 - Constants
5. Conditionals
- 25 - The if statement
- 26 - Else and elsif
- 27 - Negative conditionals with unless
- 28 - Switch with given and when
- 29 - The ternary conditional operator
6. Loops
- 30 - Understanding loops
- 31 - Loops with while and until
- 32 - Iterating with for
- 33 - Iterating with foreach
- 34 - Loop control statements
7. Special Variables
- 35 - The default variable
- 36 - Function arguments
- 37 - The autoflush variable
- 38 - The system error variable
- 39 - Other special variables
8. Operators
- 40 - About Perl's operators
- 41 - Basic arithmetic operators
- 42 - Compound assignment operators
- 43 - Relational operators
- 44 - Logical operators
- 45 - File test operators
- 46 - The range operator
- 47 - The string concatenation operator
- 48 - Quote operators
9. Regular Expressions
- 49 - About regular expressions
- 50 - Matching text
- 51 - Common modifiers
- 52 - Extracting matches
- 53 - Getting a list of matches
- 54 - Simple matches
- 55 - Matching wildcards
- 56 - Matching classes of characters
- 57 - Matching metacharacters
- 58 - Search and replace
- 59 - Splitting strings
10. Functions
- 60 - Understanding functions
- 61 - Defining and calling functions
- 62 - Calling a function with arguments
- 63 - Locally scoped variables
- 64 - Returning values
- 65 - Static variables
- 66 - Predeclared functions
11. References and Structures
- 67 - Understanding values and references
- 68 - Array references
- 69 - Hash references
- 70 - Function references
- 71 - Finding the type of a reference
- 72 - Mixed data structures
12. File I O
- 73 - Understanding streams and files
- 74 - Using file handles
- 75 - Using the OO interface for files
- 76 - Working with binary files
13. Built-In Functions
- 77 - The print() and say() functions
- 78 - The die() function
- 79 - String functions
- 80 - Numeric functions
- 81 - List and array functions
- 82 - Time functions
- 83 - The undef function
14. Modules
- 84 - Leveraging code with modules
- 85 - Perl's object model
- 86 - An example module
- 87 - Using Carp for error messages
15. Best Practices
- 88 - Be consistent
- 89 - Selective use of comments and whitespace
- 90 - Use strict and warnings
- 91 - Use constants
Conclusion
- 92 - Next steps