Fundamentals of Perl Programming
Course Description
The course starts by teaching you about the basics of Perl programming, from installing it to creating variables, array loops, conditional statements and mathematical operations. It then discusses functions, hashes, file manipulation and the basics of regular expressions. You will learn about environmental variables, how to retrieve them and what data they contain, and be shown how to include other script files of Perl modules into your program. You will also cover the Perl module CGI.pm and discuss all the features and functions it provides.
You will then be shown how Perl is used to send emails, post forms on the Internet, and download and extract data from web pages. The course also teaches you about file manipulation, formatting text files using Perl, and the main types of Perl references and how to use them. Finally, you will delve into more complex uses of hashes, arrays, loops and databases, and learn about using regular expressions to manipulate text.
Perl was designed specifically for text processing. Its regular expression support is better than that of most other languages, and its built-in capability makes it a widely used server-side programming language. This course will give aspiring programmers and software developers the knowledge they need to begin using Perl in their work. This will be a significant boost to your skill set, and to your résumé.
What you'll learn in this course?
-
Perl
-
Technology
-
Programming
-
Data Structures
-
Databases
Course Curriculum
- Learning Outcomes
- Active Perl
- Program Basics
- Variables
- Arrays: Basics
- Arrays: Push, Pop, Hsift Unshift
- Arrays: Merge, Reverse, Sort
- Array Tips
- Looping Arrays: The Foreach Loop
- Conditionals: If, Elseif, Else, Unless
- Operators And Precedence - Part 1
- Operators And Precedence Part 2
- The While Loop, The Until Loop
- Lesson Summary
- Learning Outcomes
- Functions: Map, Grep
- Hashes: Basics
- Looping Hashes: Keys, Values, Each
- Hash Functions: Exists, Defined S
- Hashes: Reverse, Sort, Merge
- Functions: Split, Join
- Functions: Lc, Uc, Lcfirst, Ucfirst
- Functions: Length, Substr
- Random Numbers And Rounding
- What's The Time?
- Commenting Your Code
- Regular Expressions: Basics
- Subroutines: Basics
- Open, Read And Close A Text File
- Write To And Append A Text File
- Rename, Copy And Delete Files
- Lesson Summary
- Learning Outcomes
- Directories: Open, Read, Make And More
- Glob Function
- Upload A Script To A Server
- Printing A Block Of Text
- File Test Operators
- Chmod Function: Set File Permissions
- Sendmail: Send An Email
- Create A Form Where Method=Post
- Parse A Form Where Method=Post
- Create A Form Where Method=Get
- Parse A Form Where Method=Get
- Create And Parse A Simple String Query
- Environmental Variables
- Lesson Summary
- Learning Outcomes
- Require Function
- Install A Module With CPAN.Pm
- LWP::Simple - Get Web Page Source
- Fetch, Parse And Convert A Web Page
- LWP:: USERAgent - Emulate A Browser
- IO::Socket - Connect To A Web Server
- HTML::LinkExtor - Extract Links
- HTML::HeadParser - Extract Title
- Download A Website To Your Computer
- Create And Work With A Flat File Database
- Lesson Summary
- Learning Outcomes
- CGI.Pm - Generate HTML On The Fly
- CGI.Pm Meta, Body, Image, Link Tags
- CGI.Pm Generate Tables On The Fly
- CGI.Pm Generate Forms On The Fly - Part 1
- CGI.Pm Generate Forms On The Fly - Part 2
- CGI.Pm Parse A Form
- CGI.Pm Generate Frames On The Fly
- CGI.Pm Generate An Image Map
- CGI.Pm Set And Read Cookies
- CGI.Pm File Uploads
- CGI.Pm Browser Redirection
- CGI.Pm Return An Image
- Lesson Summary
- Learning Outcomes
- Benchmark Your Code
- Redirect Browser With Location
- File::Find Find Files And Directories
- Perl Package Manager
- Date::Calc - Date Functions And Calculations
- File::Compare - Compare Two Files
- Business::CreditCard - Check Credit Card
- Formats - Create Text Formats
- Formats - Text Slices
- Formats - Create A Multiline List
- Formats - Create A Document Header
- Formats - Create A Multipage Report
- Formats - Low-Level Formatting
- Lesson Summary
- Learning Outcomes
- Hard References
- Symbolic References
- Typeglobs
- Anonymous Arrays, Hashes And Subroutines
- Reference A Typeglob
- References Using The Symbol Table
- De-Reference Using Arrow Operations
- Pass Multiple Arrays To Sub
- Ref Operator - Determine Data Type
- Closures - Initialize Subroutine
- Function Templates
- Declaring Subroutines
- Subroutine Prototypes
- Reading Arguments Passed To Subroutines
- Returning Values From Subroutines
- Set Scope With My And Local In Subroutines
- Lesson Summary
- Learning Outcomes
- Arrays Of Arrays
- Hashes Of Hashes
- Arrays Of Hashes
- Hashes Of Arrays
- Chop And Chomp
- STDIN - Read Type Input
- The For Loop
- Store Data Structures On Disk
- Data::Dumper - Print Data Structures
- Copy A Data Structure
- Write And Read A Database
- Sort Databases
- Text File Databases
- Encryption Using Crypt Function
- Pattern Matching
- Output Filed Separators
- Current Input Line Number
- Output Record Separator
- Default Variable
- Lesson Summary
- Lesson Summary
- Regex - Match A Digit
- Regex - Character Classes
- Regex - Alternative Match Patterns
- Regex - Quantifiers
- Regex - Assertions
- Regex - Backreferences Part 1
- Regex - Backreferences Part 2
- Regex - Lookahead And Lookbehind
- Regex - Pos Function
- Regex - E Modifier
- Regex - Ee Modifier
- Regex - X Modifier
- Regex - O Modifier
- Regex - Qr Operato
- Lesson Summary
Mark Berman
USA
By