LinuxCBT.com

Syllabus

Focus: Perl Scripting | Automation

Duration: 15-Hours

  • Practical Extraction & Reporting Language (Perl) - Module II

    • Perl Basics
      • Discuss Perl's capabilities
      • Identify available Perl binaries on the system
      • Discuss Perldoc - documentation program
      • Discuss Perl interpreter
      • Define first Perl program - Hello World
      • Explain the application of the SHEBANG header within Perl scripts
      • Explain warnings options
      • Explain strict options
      • Discuss compilation of Perl scripts and compare and contrast with shell scripts
      • Comments
      • Print function
      • Escape sequences including (\t, \n, etc.)
      • Explain quoting rules and variable interpolation
      • Variable definition
      • Operators
    • Perl Variables
      • Variable scopes (Global/Local)
      • Scalars - single values
        • Discuss the properties of scalar variables
        • Evaluate the definition of scalars
        • Variable concatenation
      • Arrays - lists & lists of lists
        • Discuss the properties of array variables
        • Evaluate the definition of arrays
        • Multi-dimensional arrays
        • Array slices
        • Array functions
        • Ranges
      • Hashes - Key/Value pairs
        • Discuss the properties of hashes
        • Evaluate the definition of hashes
    • Control Structures
      • Discuss various types of Subroutines and features
      • Define non-returning sub-routines
      • Define returning sub-routine
      • Conditionals
      • If - integer and string comparisons
      • Else/elsif testing
      • Unless
      • For Loops
      • Foreach Loops - Array iteration
      • While Loops
      • Until Loops
    • General Perl Information I
      • Block Definition
      • Use the X Functions for file system testing
      • Positional parameters - ARGV
      • Determine number of command line arguments
      • Record Separators
      • Internal Perl Variables
      • Modules
      • Explore the module path and applicable variables
      • Discuss various ways to install Perl modules
      • Install modules
      • File I/O
      • File Handles
      • Open Function
      • Discuss rules regarding file handles and use of the open function
      • Assign file handles to Perl arrays for iteration
      • Process text files using applicable file I/O functions and foreach loops
      • Generate data files using file I/O functions
      • Die function
      • Error handing with Perl's built-in variables
      • Count records from input file
      • Use the Split function to separate fields based on various delimiters
      • Use Join to assemble lists
    • General Perl Information II
      • References
      • Chomp - strip superfluous characters
      • Command substitution
      • Use execute function to launch external programs
      • Use system function to execute external commands and evaluate return status
      • Regular Expressions discussion
      • Demonstrate the many rules of Regular Expressions
      • Process arrays using push/pop functions
      • Generated data files and process them using split and field determination
      • Mail integration using Sendmail
      • Mail integration using downloaded Perl mail module
      • Define and execute Perl one-liners
      • Common Gateway Interface (CGI) - Apache 2.x integration
      • Process GET & POST variables
      • MySQL Database integration
      • Identify required modules for MySQL integration
      • Define connection object
      • Execute SELECT queries
      • Execute INSERT queries
      • Execute UPDATE queries
      • Execute DELETE queries
    • Perl LFTP Integration - Error Handling
      • Integrate LFTP client with Perl
      • Automate LFTP process with Perl
      • Implement error-handling
      • Evaluate results

LinuxCBT Perl Edition

  •  
DEMO