Perl Tutorial

 

Table of Contents

Perl Tutorial Overview

Click the Align button in Komodo's Help Browser to resize the Komodo workspace and the Help Browser for side-by-side viewing.

Before You Start

This tutorial assumes...

  • ...that you are running the tutorial locally from within the Komodo Help Browser. While it can be read online, the interactive functions (such as resizing the workspace and creating sample projects) are only accessible within the Komodo Help Browser.
  • ...that ActivePerl build 623 or greater is installed on your system. ActivePerl is a free distribution of the core Perl language. See Komodo's Installation Guide for configuration instructions.
  • ...that you have a connection to the Internet.
  • ...that you are interested in Perl. You don't need to have previous knowledge of Perl; the tutorial will walk you through a simple program and suggest some resources for further information.
Top

Perl Tutorial Scenario

You have exported a number of email messages to a text file. You want to extract the name of the sender and the contents of the email, and convert it to XML format. (You intend to transform it to HTML using XSLT.) In order to create an XML file from a text source file, you will use a Perl program that parses the data and places it within XML tags. In this tutorial you will:

  1. Use the Perl Package Manager (PPM) to install a Perl module that contains code for parsing text files containing comma-separated values.
  2. Open the Perl Tutorial Project and associated files.
  3. Analyze parse.pl the Perl program included in the Tutorial Project.
  4. Generate output by running the program.
  5. Debug the program using the Komodo debugger.

Top Home Next