3 arrows

Summer-Ready Savings: Up To $500 Off Training 

closeClose

Perl Programming Essentials

  • Tuition USD $2,495 GSA  $2,262.47
  • Reviews star_rate star_rate star_rate star_rate star_half 4064 Ratings
  • Course Code TTPS4925
  • Duration 4 days
  • Available Formats Classroom, Virtual

Introduction to Perl is a five day, hands-on Perl programming course that guides the students from the basics of writing and running Perl scripts to using more advanced features such as file operations, report writing, the use of regular expressions, working with binary data files, and using the extensive functionality of the standard Perl library.

Skills Gained

  • 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

Who Can Benefit

This course is appropriate for anyone who wants to create applications or modules to automate and simplify common tasks with Perl.

Prerequisites

Students should already have a working, user-level knowledge of an operating system such as UNIX or Windows. While not mandatory, basic skills with at least one other programming language are desirable.

Course Details

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 ash 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

When does class start/end?

Classes begin promptly at 9:00 am, and typically end at 5:00 pm.

Does the course schedule include a Lunchbreak?

Lunch is normally an hour long and begins at noon. Coffee, tea, hot chocolate and juice are available all day in the kitchen. Fruit, muffins and bagels are served each morning. There are numerous restaurants near each of our centers, and some popular ones are indicated on the Area Map in the Student Welcome Handbooks - these can be picked up in the lobby or requested from one of our ExitCertified staff.

How can someone reach me during class?

If someone should need to contact you while you are in class, please have them call the center telephone number and leave a message with the receptionist.

What languages are used to deliver training?

Most courses are conducted in English, unless otherwise specified. Some courses will have the word "FRENCH" marked in red beside the scheduled date(s) indicating the language of instruction.

What does GTR stand for?

GTR stands for Guaranteed to Run; if you see a course with this status, it means this event is confirmed to run. View our GTR page to see our full list of Guaranteed to Run courses.

Does ExitCertified deliver group training?

Yes, we provide training for groups, individuals and private on sites. View our group training page for more information.

Does ExitCertified deliver group training?

Yes, we provide training for groups, individuals, and private on sites. View our group training page for more information.

Although there seemed to be too many links for the course, everything worked smoothly.

Both course material and instructor demonstrated a sound foundation on Maximo material

Good training material and good instruction. More time needs to be provided for the lab work.

Great and very intuitive. Better than the traditional hit the wrong button/lose points.

Some Labs are very good but some steps it ask to update but its already updated, but overall its very good training.

3 options available

undo
  • Aug 30, 2021 Sep 2, 2021 (4 days)
    Location
    Virtual
    Language
    English
    Time
    10:00 AM 6:00 PM EDT
    Enroll
    Enroll
    SAVE on this course -  Promo Code: SUMMER500
  • Oct 18, 2021 Oct 21, 2021 (4 days)
    Location
    Virtual
    Language
    English
    Time
    10:00 AM 6:00 PM EDT
    Enroll
    Enroll
  • Nov 30, 2021 Dec 3, 2021 (4 days)
    Location
    Virtual
    Language
    English
    Time
    10:00 AM 6:00 PM EDT
    Enroll
    Enroll
Contact Us 1-800-803-3948
Contact Us
FAQ Get immediate answers to our most frequently asked qestions. View FAQs arrow_forward