H4311: HP Perl Programming

$2,500.00


  • Virtual Classroom

  • Onsite

← Continue Searching

Duration: 5 Days

In this course, provides you will learn the basics of Perl programming, including Perl program syntax and structure, control and data structures, file processing, and use of pattern matching. You will gain the skills needed for system administration with Perl (e.g. running system commands and checking return codes), creating functions, processing fixed-width or binary files, importing and using modules (including object-oriented modules), and programming CGI. You will spend 60 percent of class using HP servers in hands-on labs.

What You Will Learn

  • Use Perl modules, such as Sockets
  • Write basic Common Gateway Interface (CGI) programs that are secure
  • Maintain Perl scripts already in use in your environment
  • Create and run a Perl program, saving time and increasing productivity by automating administrative tasks
  • Improve control over basic system and user tasks
  • Create comprehensive and useful Perl utilities that can dramatically aid in troubleshooting and administrative tasks
  • Read and maintain existing Perl scripts
  • Create and execute a Perl program
  • Use looping and branching statements
  • Use lists, arrays, and hashes
  • Use regular expressions
  • Execute system commands from within a Perl script
  • Use subroutines to modularize programs
  • Use references to implement advanced data structures

Audience

System administrators, programmers, and technical users

Prerequistes

  • UNIX Fundamentals or equivalent UNIX experience, including using the editor and navigating directories
  • Basic programming experience in C or Java or another high level programming language or an operating system command shell (csh, ksh, or POSIX)

Course Outline

1. Perl Programming

  • Parts of a Perl Program
  • Creating a Perl Program

2. Perl Statements

  • Format of Perl Statements
  • Variables
  • Commands
  • Evaluation and Assignments
  • Operators

3. Managing Data

  • Standard File Descriptors
  • Opening Files
  • Reading and Writing Files
  • Formatting
  • File Handling Functions

4. Looping and Branching

  • True/False
  • 'If' Conditional
  • Using 'Unless'
  • Loops with 'While' and 'Until'
  • 'For' Loop
  • Using 'Foreach'

5. Lists, Arrays, and Hashes

  • Creating and Working with Lists
  • Creating and Working with Arrays
  • Creating and Working with Hashes
  • Commands for Lists, Arrays, and Hashes

6. Looping and Branching Controls

  • Modifiers
  • Using "Short-Circuit" Statements
  • Modifying Execution of a Loop
  • Using Labels
  • Commands Related to Users and Groups

7. Pattern Matching

  • Uses for Pattern Matching
  • Using Regular Expressions
  • Literal and Character Matching
  • Anchors and Quantifiers
  • Capturing and Back References
  • Command Modifiers

8. Module Subroutines

  • Creating and Calling a Subroutine
  • Pass by Value Call
  • Pass by Reference Call
  • Prototypes
  • Using Subroutines

9. Special Variables

  • Record Handling
  • Formats
  • Regular Expressions
  • Process Information
  • Arrays and Hashes
  • Process and Time Commands

10. Advanced Data Structures

  • What is possible
  • Creating and Using References
  • Anonymous References
  • Simple and Complex Records
  • Array of Records
  • Arrays of Arrays and Hashes
  • Hashes of Hashes and Arrays
  • Using Linked Lists

11. CGI Protocol

  • Defining CGI Protocol
  • CGI Role
  • Creating a Form
  • Text Area and Radio Buttons
  • Security and Pathname Issues
  • Environmental Variables
  • Debugging CGI scripts

12. Perl Modules

  • Modules
  • Building and Installing Modules
  • Sockets
  • CGI

Course Labs