Ad space (banner)
🐫Perl Lessons
- 01Setting up (what you'll need)
- 02Your first output (print)
- 03Variables (scalar variables, $)
- 04Branching (the if statement)
- 05Repeating (the for loop)
- 06Writing a subroutine (a function)
- 07Repeating (the while loop)
- 08Working with arrays (@)
- 09Working with hashes (%)
- 10Regular expression matching
- 11Substitution with regular expressions (s///)
- 12Working with strings
- 13References
- 14Anonymous subroutines
- 15File input and output, the basics
- 16Modules and use strict / warnings
- 17The ternary operator
- 18Sorting (sort)
- 19Packages and the basics of object orientation
- 20[Project] Build a small inventory system
Lesson 1 / 20
Setting up (what you'll need)
To run Perl you will need the following. Perl is a language strong in string handling and regular expressions, and has long been used for log analysis, text processing, and web back ends (CGI).
- Perl itself: it is usually installed by default on Mac and Linux. On Windows, use something like Strawberry Perl.
- Typing
perl -vin a terminal shows you the version. - For an editor, the easiest route is VS Code with a Perl extension.
← Previous lesson
Next lesson →
Ad space (banner)
Ad space (in-article)
