Tag Archives: perl

Training Perl / Advanced – 4 days

Class overview :

In this Perl training course, students already familiar with Perl will learn advanced programming techniques in Perl.

Class goals :

Learn to debug Perl applications
Learn to efficiently manipulate lists in Perl
Learn to work more effectively with Perl packages
Learn to work with Tied Variables in Perl
Learn to manipulate databases with Perl
Learn to effectively use Perl Modules
Learn to work with Perl/Tk
Learn to extend Perl with C/C++
Learn to embed the Perl Interpreter into a program
Learn to create your own Perl modules

Content of Training Perl / Advanced

Class Outline

  1. Debugging Perl
    1. Warnings
    2. Diagnostic Messages
    3. Carping, Confessing, and Croaking
    4. Strict Checks
    5. Compiler Pragmas
    6. Debugging Flags
    7. Your Perl Configuration
    8. The Devel::Peek Module
    9. The Data::Dumper Module
  2. Expert List Manipulation in Perl
    1. The grep Operator
    2. Lists, Arrays, and List Operators
    3. Context
    4. Context and Subroutines
    5. Initializing Arrays and Hashes
    6. Reference Syntax
    7. Auto-vivification
    8. Defined Values
    9. Other List Operators
    10. Usage of map, grep, and foreach
  3. Blocks and Code References in Perl
    1. Blocks
    2. Subroutines
    3. Subroutine Prototypes
    4. Code Refs and Anonymous Subroutines
    5. Typeglobbing for the Non-Squeamish
    6. Local (Dynamic) Variables
    7. Lexical Variables
    8. Persistent Private Subroutine Variables
    9. Closures
    10. The eval Operator
    11. The Block Form of eval
    12. The String Form of eval
    13. Block Form of eval for Exception Handling
  4. Perl Packages
    1. Review of Packages
    2. BEGIN and END Blocks
    3. Symbol Tables
    4. Package Variables
    5. Calling Package Subroutines
    6. Importing Package Symbols
    7. Exporting Package Symbols
    8. Using the Exporter Package
    9. The use Function
    10. AUTOLOAD and @ISA
    11. AutoLoader and SelfLoader
  5. Objects and Classes in Perl
    1. Object-Oriented Stuff
    2. Making Perl Object-Oriented
    3. References
    4. The bless Function
    5. So, What’s a Blessed Thing Good For?
    6. Calling Class and Object Methods
    7. Object Methods
    8. Writing Classes
    9. Constructors
    10. Inheritance
    11. What Perl Doesn’t Do
  6. Tied Variables in Perl
    1. Why Use tie?
    2. Tying a Scalar
    3. Inside Tied Variables
    4. untie
    5. Another Tied Scalar Example
    6. Tying an Array
    7. A Tied Array Example
    8. Tying Hashes
    9. Tie::Hash and Tie::Array
    10. Tying Filehandles
    11. What Are DBM, NDBM, GDBM, SDBM, etc?
    12. Using the DBM Modules
  7. Installing and Using Perl Modules
    1. Laziness, Impatience, and Hubris
    2. CPAN
    3. Using Modules
    4. Installing a Perl Module
    5. Unpacking the Module Source
    6. The Configuration Step
    7. The Build Step
    8. The Test Step
    9. The Install Step
    10. Using CPAN.pm
    11. Using Module Documentation
  8. Introduction to DBI/DBD in Perl
    1. The Old Way – DBPerls
    2. A Better Way – DBI/DBD
    3. Database Programming
    4. Handles
    5. Connecting to the Database
    6. Creating a SQL Query
    7. Getting the Results
    8. Updating Database Data
    9. Transaction Management
    10. Finishing Up
  9. DBI/DBD SQL Programming
    1. Error Checking in DBI
    2. Getting Connected
    3. Drivers
    4. Using Parameterized Statements
    5. Statement Handle Attributes
    6. Other Handle Attributes
    7. Column Binding
    8. The do Method
    9. BLOBs and LONGs and Such
    10. Installing DBI Drivers
  10. Introduction to Perl/Tk
    1. Tcl, Tk, Tcl/Tk, Tkperl, Perl/Tk, etc.
    2. Perl/Tk
    3. Creating a Perl/Tk Application
    4. GUI Programming Overview
    5. Adding Widgets
    6. Scrolled Widgets
    7. Configuring Widgets
    8. Menus
    9. More Fun with Menus
    10. Using FileSelect
  11. Perl/Tk Programming
    1. Tk::Error and Tk::ErrorDialog
    2. Configuring Widgets
    3. Geometry Management
    4. Geometry Management with grid()
    5. The Frame Widget
    6. Defining Widget Callbacks
    7. Bindings
    8. Nonblocking I/O with fileevent()
    9. Tags
    10. Other Widgets
    11. Other Tk Commands
    12. Getting Tk
  12. Extending Perl with C/C++
    1. Extending the Perl Interpreter
    2. Overview of Perl5 XSUBs
    3. Get Started with h2xs
    4. Set up the Perl Wrapper Class
    5. Write the XS Code
    6. The XS File
    7. Write Some Test Code
    8. What Do You Want?
    9. Returning Values on the Stack
    10. A Walk Through an XSUB
    11. Arguments to XSUBs
    12. Other h2xs Options
  13. Embedding the Perl Interpreter
    1. Why Embed Perl?
    2. Embedding Perl in a C Program
    3. Compiling the Program
    4. perlmain.c
    5. Perl Data Types
    6. Macros and Functions
    7. Manipulating Scalars
    8. Memory Management
    9. Script Space
    10. Evaluating Perl Expressions
    11. Dynamic Loading
    12. Multiple Perl Interpreters
  14. Module Development and Distribution in Perl
    1. Distributing Modules
    2. Get Started with h2xs
    3. Files Created by h2xs
    4. The Build Library (blib) Directory
    5. Unit Testing and test.pl
    6. Versions
    7. Using blib
    8. POD
    9. POD Translators
    10. Cutting a Distribution
    11. Other Niceties
    12. Makefile.PL
  15. Design and Implementation in Perl
    1. Think First
    2. Object-Oriented Design
    3. Object-Oriented Development
    4. Library Modules
    5. Utility Programs
    6. Filters
    7. Performance
    8. Timing with Benchmark
Perl / Advanced
Training Perl / Advanced

Onze voordelen :

  • Type of training: Inter-company, intra-company and individual
  • 100% flexible & personalised training : You choose the place, the dates and the training program
  • Offer request : Response within 24 hours
  • 50% discount for SME’s from Brussels-Capital Region
  • Free parking, lunch & drinks
  • Free use of our Digital Competence Centre: Manuals, courses, exercises, …
Advertisement

Training Perl for Unix / Introduction – 5 days

Class overview :

In this Perl training course, students will learn to program effectively in Perl.

Class goals :

Learn to work with variables, arrays and hashes in Perl
Learn to write flow control statements in Perl
Learn to manipulate files with Perl
Learn to use Perl’s Regular Expressions
Learn to create complex data structures with Perl
Learn to use Perl packages and modules
Learn to work with Perl’s object-oriented features
Learn to write subroutines in Perl

Content of Training Perl for Unix / Introduction

Class Outline

  1. Overview of Perl
    1. What is Perl?
    2. Running Perl Programs
    3. Sample Program
    4. Another Sample Program
    5. Yet Another Example
  2. Perl Variables
    1. Three Data Types
    2. Variable Names and Syntax
    3. Variable Naming
    4. Lists
    5. Scalar and List Contexts
    6. The Repetition Operator
  3. Arrays and Hashes in Perl
    1. Arrays
    2. Array Functions
    3. The foreach Loop
    4. The @ARGV Array
    5. The grep Function
    6. Array Slices
    7. Hashes
    8. Hash Functions
    9. Scalar and List Contexts Revisited
  4. Quoting and Interpolation in Perl
    1. String Literals
    2. Interpolation
    3. Array Substitution and Join
    4. Backslashes and Single Quotes
    5. Quotation Operators
    6. Command Substitution
    7. Here Documents
  5. Perl Operators
    1. Perl Operators
    2. Operators, Functions and Precedence
    3. File Test Operators
    4. Assignment Operator Notations
    5. The Range Operator
  6. Flow Control in Perl
    1. Simple Statements
    2. Simple Statement Modifiers
    3. Compound Statements
    4. The next, last, and redo Statements
    5. The for Loop
    6. The foreach Loop
  7. I/O: Input Operations and File I/O with Perl
    1. Overview of File I/O
    2. The open Function
    3. The Input Operator < >
    4. Default Input Operator
    5. The print Function
    6. Reading Directories
  8. Regular Expressions in Perl
    1. Pattern Matching Overview
    2. The Substitution Operator
    3. Regular Expressions
    4. Special Characters
    5. Quantifiers (*, +, ?, {})
    6. Assertions (^, $, b, B)
  9. Advanced Regular Expressions in Perl
    1. Substrings
    2. Substrings in List Context
    3. RE Special Variables
    4. RE Options
    5. Multi-line REs
    6. Substituting with an Expression
    7. Perl RE Extensions
  10. Subroutines in Perl
    1. Overview of Subroutines
    2. Passing Arguments
    3. Private Variables
    4. Returning Values
  11. References
    1. References
    2. Creating References
    3. Using References
    4. Passing References as Arguments to Subroutines
    5. Anonymous Composers
    6. The Symbol Table
  12. Complex Data Structures in Perl
    1. Two-dimensional Arrays in Perl
    2. Anonymous Arrays and Anonymous Hashes
    3. Arrays of Arrays
    4. Arrays of References
    5. A Hash of Arrays
    6. A Hash of Hashes
    7. And So On…
  13. Perl Packages and Modules
    1. Packages
    2. BEGIN and END Routines
    3. require vs. use
    4. Modules
    5. The bless Function
  14. Introduction to Object-Oriented Programming in Perl
    1. What is Object-Oriented?
    2. Why Use Object-Oriented Programming?
    3. Classes, Objects, and Methods in Perl
    4. Inheritance, the « is-a » Relationship
    5. Containment, the « has-a » Relationship
    6. Overloaded Operators
    7. Destructors
  15. Binary Data Structures in Perl
    1. Variable-Length (Delimited) Fields
    2. Variable vs. Fixed
    3. Handling Binary Data
    4. The pack Function
    5. The unpack Function
    6. The read Function
    7. C Data Structures
  16. Multitasking with Perl
    1. What are Single and Multitasking?
    2. UNIX Multitasking Concepts
    3. Process Creation with fork
    4. Program Loading with exec
    5. File Descriptor Inheritance
    6. How UNIX Opens Files
    7. One-Way Data Flow – Pipes
    8. Example
    9. Final Result – Page Viewing
  17. Sockets Programming in Perl
    1. Clients and Servers
    2. Ports and Services
    3. Berkeley Sockets
    4. Data Structures of the Sockets API
    5. Socket System Calls
    6. Generic Client/Server Models
    7. A Client/ServerExample
    8. A Little Web Server
Perl for Unix / Introduction
Training Perl for Unix / Introduction

Onze voordelen :

  • Type of training: Inter-company, intra-company and individual
  • 100% flexible & personalised training : You choose the place, the dates and the training program
  • Offer request : Response within 24 hours
  • 50% discount for SME’s from Brussels-Capital Region
  • Free parking, lunch & drinks
  • Free use of our Digital Competence Centre: Manuals, courses, exercises, …

Training Perl Programming and CGI Scripting – 5 days

Class overview :

This hands on Perl programming course provides a thorough introduction to the Perl programming language, teaching attendees how to develop and maintain portable scripts useful for system management, data manipulation, and Web CGI programming.

Class goals :

Extensive hands on exercises provide practice in report creation, pattern matching, string manipulation, file I/O, command line processing, and debugging. Students are shown how to extend Perl’s basic functionality with packages and loadable modules. The final day encompasses CGI scripting with Perl as well as database access using the DBI module. Attendees are shown how to validate form data, how to perform robust database access, and how to generate HTML output in order to create a dynamic web site.

Content of Perl Programming and CGI Scripting

  • Perl Fundamentals
  • Running Perl on UNIX and Windows
  • Using Scalar Variables
  • Using Arrays
  • Operators, Expressions and Precedence
  • Arithmetic and String Operators
  • Relational and Logical Operators
  • Using the Conditional Operator
  • Understanding File Test Functions
  • Conditional Constructs
  • Looping Constructs
  • Using Subroutines
  • Global vs. Local Variables and Scoping
  • Debugger Concepts
  • Using Perl Script Arguments
  • Using Regular Expressions
  • Reading and Writing Files
  • Understanding Scope
  • Understanding Modules
  • Writing to Files and Using Multiple Named Formats
  • The Common Gateway Interface
  • Configuring a Web Server for CGI
  • The Apache httpd.conf File
  • Aliasing CGI-Enabled Directories in Apache
  • Relationship Between HTML and CGI
  • The CGI Output Stream
  • Specifying MIME Types
  • Printing Dynamic Content
  • Working with Form Data
  • Using the Perl CGI.pm Module
  • Creating Forms with CGI.pm
  • Form Processing with CGI.pm
  • Setting Cookies
  • Using Relational Databases with Perl CGI
  • Connecting to a Database
  • Procedural and Object Oriented Programming
Perl Programming and CGI Scripting
Training Perl Programming and CGI Scripting

Onze voordelen :

  • Type of training: Inter-company, intra-company and individual
  • 100% flexible & personalised training : You choose the place, the dates and the training program
  • Offer request : Response within 24 hours
  • 50% discount for SME’s from Brussels-Capital Region
  • Free parking, lunch & drinks
  • Free use of our Digital Competence Centre: Manuals, courses, exercises, …

This hands on Perl programming course provides a thorough introduction to the Perl programming language, teaching attendees how to develop and maintain portable scripts useful for system management, data manipulation, and Web CGI programming.