Maxtrain.com - info@maxtrain.com - 513-322-8888 - 866-595-6863
Introduction to Perl Programming Essentials
Description
Introduction to Perl Programming Essentials
Welcome to Introduction to Perl Programming Essentials! This foundational course is tailored for beginners stepping into the vibrant world of Perl scripting. It’s structured to provide a meticulous guide through the foundational steps of creating and executing Perl scripts, ensuring beginners gain a solid understanding of the essentials.
As you progress, you’ll dive into sophisticated topics such as efficient file handling, report generation, and mastering regular expressions. You’ll also explore binary data file interactions and utilize the robust features of Perl’s standard library.
The curriculum offers a practical, hands-on approach that emphasizes the practical applications of Perl. Starting with fundamental Perl syntax and programming logic, the course progressively introduces more advanced topics. This ensures students develop a strong foundation before tackling complex subjects, preparing them to solve real-world challenges with confidence.
To solidify your learning, this course integrates practical exercises and real-world examples, helping you fully grasp Perl’s theoretical and practical aspects.
By the end, you’ll have the skills and confidence to apply Perl effectively in practical environments.
Introduction to Perl Programming Essentials Course Objectives
Working in a hands-on learning environment, guided by our expert team, attendees will learn to:
- Create a working script that gets input from the command line, the keyboard, or a file
- Use arrays to store and process data from files
- Create formatted reports
- Use regular expressions
- Use the appropriate types of variables and data structures
- Refactor duplicate code into subroutines and modules
- What is available in the standard library
- Use shortcuts and defaults, and what they replace
Prerequisites
- Basic familiarity with any programming or scripting language would be helpful, along with a working, user-level knowledge of Unix/Linux, Mac, or Windows.
Audience
- This in an introductory-level Perl course geared for experienced users who want to use Perl in web development projects, or who wants to automate or simplify common tasks with the use of Perl scripts.
Introduction to Perl Programming Essentials Outline
An overview of Perl
- What is Perl?
- Perl is compiled and interpreted
- Perl Advantages and Disadvantages
- Downloading and Installing Perl
- Which version of Perl
- Getting Help
Creating and running Perl programs
- Structure of a Perl program
- Running a Perl script
- Checking syntax and warnings
- Execution of scripts under Unix and Windows
Basic Data and I/O
- Numeric and Text literals
- Math operators and expressions
- Scalar variables
- Default values
- Writing to standard output
- Command line arguments
- Reading from the standard input
Logic and Loops
- About flow control
- The if statement and Boolean values
- Using unless and elsif
- Statement modifiers
- warn() and die()
- The conditional construct
- Using while loop and its variants
- Using the for loop
- Exiting from loops
Lists and Arrays
- The list data type
- Accessing array elements
- Creating arrays
- List interpolation
- Arrays and memory
- Counting elements
- Iterating through an array
- List evaluation
- Slices and ranges
Reading and writing text files
- File I/O Overview
- Opening a file
- Reading text files
- Writing to a text file
- Arrays and file I/O
- Using the <> operator
List functions
- Growing and shrinking arrays
- The split() function
- Splitting on whitespace
- Assigning to literal lists
- The join() function
- The sort() function
- Alternate sort keys
- Reversing an array
Formatting output
- Using sprintf() and printf()
- Report formatting overview
- Defining report formats
- The write() function
- Advanced filehandle magic
Hashes
- Hash overview
- Creating hashes
- Hash attributes
- Traversing a hash
- Testing for existence of elements
- Deleting hash elements
References
- What is a reference?
- The two ways to create references
- References to existing data
- References to anonymous data
- Dereferencing scalar, array, and hash references
- Dereferencing elements of arrays and hashes
- Multidimensional arrays and other data structures
Text and Regular Expressions
- String length
- The substr() function
- The index() and rindex() functions
- String replication
- Pattern matching and substitution
- Regular expressions
Raw file and data access
- Opening and closing raw (binary) files
- Reading raw data
- Using seek() and tell()
- Writing raw data
- Raw data manipulation with pack() and unpack()
Subroutines and variable scope
- Understanding packages
- Package and Lexical variables
- Localizing builtin variables
- Declaring and calling subroutines
- Calling subroutines
- Passing parameters and returning values
Working with the operating system
- Determining current OS
- Environment variables
- Running external programs
- User identification
- Trapping signals
- File test operators
- Working with files
- Time of day
Shortcuts and defaults
- Understanding $_
- shift() with no array specified
- Text file processing
- Using grep() and Using map()
- Command-line options for file processing
Data wrangling
- Quoting in Perl
- Evaluating arrays
- Understanding qw( )
- Getting more out of the <> operator
- Read ranges of lines
- Using m//g in scalar context
- The /o modifier
- Working with embedded newlines
- Making REs more readable
- Perl data conversion
Using the Perl Library
- The Perl library
- Old-style library files
- Perl modules
- Modules bundled with Perl
- A selection of modules
- Getting modules from ActiveState
- Getting modules from CPAN
- Using Getopt::Long
Some Useful Tools
- Sending and receiving files with Net::FTP
- Using File::Find to search for files and directories
- Grabbing a Web page
- Some good places to find scripts
- Perl man pages for more information
- Zipping and unzipping files
$2495.00
|
4 Days Course |